mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 13:53:48 +01:00
window.onbeforeunload only if not DebugMode
This commit is contained in:
parent
b1c5e04689
commit
3571ce4fad
@ -561,7 +561,9 @@ draft: false
|
|||||||
$(sel_ref).trigger("change")
|
$(sel_ref).trigger("change")
|
||||||
}
|
}
|
||||||
async function submitdat() {
|
async function submitdat() {
|
||||||
|
if (!DebugMode.Enabled) {
|
||||||
window.onbeforeunload = () => { return ''; }
|
window.onbeforeunload = () => { return ''; }
|
||||||
|
}
|
||||||
await reloadContent();
|
await reloadContent();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user