Tilorswift prevents unintentional window closings

This commit is contained in:
Mal
2025-05-24 13:06:36 +02:00
parent 963257ad79
commit f3ac21839d

View File

@@ -6,6 +6,13 @@ import Setting from "../../js/Setting.js";
const imageLoader = new ImageLoader();
window.addEventListener(
'beforeunload',
(event) => {
event.preventDefault();
}
);
for (const graphicSet of GraphicSet) {
imageLoader.addImage('../' + Setting.TILESET_LOCATION + graphicSet.tileset);