v1.5.61 - not fire onbeforeunload in electron

This commit is contained in:
Azgaar 2021-02-25 15:07:09 +03:00
parent ffb9d2e5c3
commit 137cbbf0b9

View file

@ -9,7 +9,7 @@ $(window).resize(function(e) {
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
const tooltip = document.getElementById("tooltip");