mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-05-04 11:19:27 -05:00
fix frontend reload again
This commit is contained in:
@@ -88,10 +88,13 @@ setTimeout(() => {
|
||||
console.log("Lost connection to server");
|
||||
}
|
||||
|
||||
ws.send(JSON.stringify({
|
||||
type: 'ping',
|
||||
lastSyncId: lastSyncId
|
||||
}));
|
||||
try {
|
||||
ws.send(JSON.stringify({
|
||||
type: 'ping',
|
||||
lastSyncId: lastSyncId
|
||||
}));
|
||||
}
|
||||
catch (e) {} // if the connection is closed then this produces a lot of messages
|
||||
}, 1000);
|
||||
}, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user