From 3571ce4fad2b74bb352ac2ee6413a5be786e9de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Thu, 6 Aug 2020 18:57:18 +0200 Subject: [PATCH] window.onbeforeunload only if not DebugMode --- content/dataset.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/dataset.html b/content/dataset.html index d5db919c..ddc6ee35 100644 --- a/content/dataset.html +++ b/content/dataset.html @@ -561,7 +561,9 @@ draft: false $(sel_ref).trigger("change") } async function submitdat() { - window.onbeforeunload = () => { return ''; } + if (!DebugMode.Enabled) { + window.onbeforeunload = () => { return ''; } + } await reloadContent(); }