Quick fix for #3362 - Request Confirmation if MeshCentral-Browser-Tab is closed. - Maybe needs an option per User or Config.JSON-Setting
JSuenram committed
Feb 14, 2022 at 11:15 UTC
4729ee34dcd93b6b2f5e1d9d6482893448011062
1 file changed
+6
views/default.handlebars
+6
@@ -17216,6 +17216,12 @@
17216
}
17217
}
17218
17219
+ // Quick fix for #3362 - Request Confirmation if MeshCentral-Browser-Tab is closed. - Maybe needs an option per User or Config.JSON-Setting
17220
+ window.addEventListener('beforeunload', function (e) {
17221
+ e.preventDefault();
17222
+ e.returnValue = '';
17223
+ });
17224
+
17225
</script>
17226
</body>
17227
</html>
\ No newline at end of file