From 3f766bac895d1424a1664c77d581c0b91f8b78d4 Mon Sep 17 00:00:00 2001
From: Nils G <nils.gondermann@ruhr-uni-bochum.de>
Date: Wed, 15 Apr 2020 13:15:48 +0200
Subject: [PATCH] Debug page is asking for confirmation before  close

---
 views/debug/index.html | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/views/debug/index.html b/views/debug/index.html
index 352f7b5..31b2c5e 100644
--- a/views/debug/index.html
+++ b/views/debug/index.html
@@ -47,3 +47,10 @@ Database from: {{=meta.creation}}
 
     });
 </script>
+
+<script type="text/javascript">
+        window.addEventListener('beforeunload', function (e) {
+            e.preventDefault();
+            e.returnValue = '';
+        });
+</script>
-- 
GitLab