Disable onunload ping, no longer required

pull/436/head
Zef Hemel 2023-06-14 10:10:40 +02:00
parent b76ad40a9a
commit a5ae15e803
1 changed files with 4 additions and 4 deletions

View File

@ -371,10 +371,10 @@ export class Editor {
} }
}); });
globalThis.addEventListener("beforeunload", (e) => { // globalThis.addEventListener("beforeunload", (e) => {
console.log("Pinging with with undefined page name"); // console.log("Pinging with with undefined page name");
this.collabManager.updatePresence(undefined, this.currentPage); // this.collabManager.updatePresence(undefined, this.currentPage);
}); // });
this.eventHook.addLocalListener("plug:changed", async (fileName) => { this.eventHook.addLocalListener("plug:changed", async (fileName) => {
console.log("Plug updated, reloading:", fileName); console.log("Plug updated, reloading:", fileName);