Quick fix for #3362 - Request Confirmation if MeshCentral-Browser-Tab is closed. - Maybe needs an option per User or Config.JSON-Setting

This commit is contained in:
JSuenram 2022-02-14 11:15:49 +01:00
parent 8e78037bdb
commit 4729ee34dc

View File

@ -17216,6 +17216,12 @@
}
}
// Quick fix for #3362 - Request Confirmation if MeshCentral-Browser-Tab is closed. - Maybe needs an option per User or Config.JSON-Setting
window.addEventListener('beforeunload', function (e) {
e.preventDefault();
e.returnValue = '';
});
</script>
</body>
</html>