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);