mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
clearer WS error message
This commit is contained in:
@@ -172,7 +172,7 @@ function connectWebSocket() {
|
|||||||
|
|
||||||
async function sendPing() {
|
async function sendPing() {
|
||||||
if (Date.now() - lastPingTs > 30000) {
|
if (Date.now() - lastPingTs > 30000) {
|
||||||
console.log(utils.now(), "Lost connection to server");
|
console.log(utils.now(), "Lost websocket connection to the backend");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ws.readyState === ws.OPEN) {
|
if (ws.readyState === ws.OPEN) {
|
||||||
|
|||||||
Reference in New Issue
Block a user