mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.5.61 - not fire onbeforeunload in electron
This commit is contained in:
parent
ffb9d2e5c3
commit
137cbbf0b9
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ $(window).resize(function(e) {
|
||||||
changeMapSize();
|
changeMapSize();
|
||||||
});
|
});
|
||||||
|
|
||||||
window.onbeforeunload = () => "Are you sure you want to navigate away?";
|
if (!navigator.userAgent.includes("Electron")) window.onbeforeunload = () => "Are you sure you want to navigate away?";
|
||||||
|
|
||||||
// Tooltips
|
// Tooltips
|
||||||
const tooltip = document.getElementById("tooltip");
|
const tooltip = document.getElementById("tooltip");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue