From 92a8b5c2090420ce10e582604d51e5ee00968e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Sun, 24 Dec 2017 15:57:22 +0100 Subject: [PATCH] mobileclient can now onbeforeunload --- src/c3nav/editor/static/editor/js/editor.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/c3nav/editor/static/editor/js/editor.js b/src/c3nav/editor/static/editor/js/editor.js index bf7f48f9..5a56083e 100644 --- a/src/c3nav/editor/static/editor/js/editor.js +++ b/src/c3nav/editor/static/editor/js/editor.js @@ -35,9 +35,7 @@ editor = { } }); - if (!window.mobileclient) { - window.onbeforeunload = editor._onbeforeunload; - } + window.onbeforeunload = editor._onbeforeunload; L.control.scale({imperial: false}).addTo(editor.map);