another fix

This commit is contained in:
2023-08-27 18:44:27 +02:00
parent afd6f83b22
commit 96e35f4c2e

View File

@ -967,12 +967,8 @@ export class Editor {
} }
} }
// Creating the application
const app = new Editor(); const app = new Editor();
// When the user leaves the page, all the universes should be saved in the localStorage
window.addEventListener("beforeunload", () => { window.addEventListener("beforeunload", () => {
// @ts-ignore // @ts-ignore
event.preventDefault(); event.preventDefault();
@ -983,11 +979,3 @@ window.addEventListener("beforeunload", () => {
app.clock.stop(); app.clock.stop();
return null; return null;
}); });
// function reportMouseCoordinates(event: MouseEvent) {
// app._mouseX = event.clientX;
// app._mouseY = event.clientY;
// }
onmousemove = function(e){console.log("mouse location:", e.clientX, e.clientY)}