Disable onunload ping, no longer required
parent
b76ad40a9a
commit
a5ae15e803
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue