From e05a7036dc5953aa6578ea1f036a8fa1a9a6b245 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Thu, 25 Feb 2021 15:15:05 +0300 Subject: [PATCH] v1.5.62 - actually we don't need it --- modules/ui/general.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");