diff --git a/modules/ui/general.js b/modules/ui/general.js index 4e1513ed..d74bfd00 100644 --- a/modules/ui/general.js +++ b/modules/ui/general.js @@ -9,7 +9,7 @@ $(window).resize(function(e) { changeMapSize(); }); -if (!navigator.userAgent.includes("Electron")) window.onbeforeunload = () => "Are you sure you want to navigate away?"; +window.onbeforeunload = () => "Are you sure you want to navigate away?"; // Tooltips const tooltip = document.getElementById("tooltip");