add warnings for potential errors

This commit is contained in:
Mystikfluu 2022-09-21 16:16:16 +02:00
parent 61b1534b8a
commit 7857f9942c

View File

@ -35,6 +35,7 @@ socket.addEventListener("message", async function (event) {
item.files[3],
item.files[4]
)
console.log("created new post");
if(user["username"]!=username)mainNoti(username)
let highest_known_posts = await (await fetch(`/api/getPostsLowerThan?id=${highest_id+28}&channel=${currentChannel}`)).json()
@ -45,7 +46,11 @@ socket.addEventListener("message", async function (event) {
}
}
highest_id++;
} else {
console.warn("unknown message")
}
} else {
console.warn("unknown ws origin")
}
})