add warnings for potential errors
This commit is contained in:
parent
61b1534b8a
commit
7857f9942c
@ -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")
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user