10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-10-02 22:40:59 +02:00

window.onbeforeunload only if not DebugMode

This commit is contained in:
Mickaël Véril 2020-08-06 18:57:18 +02:00
parent b1c5e04689
commit 3571ce4fad

View File

@ -561,7 +561,9 @@ draft: false
$(sel_ref).trigger("change")
}
async function submitdat() {
window.onbeforeunload = () => { return ''; }
if (!DebugMode.Enabled) {
window.onbeforeunload = () => { return ''; }
}
await reloadContent();
}
</script>