Merge pull request #3641 from JSuenram/master

Quick fix for #3362 - Request Confirmation if MeshCentral-Browser-Tab…
This commit is contained in:
Ylian Saint-Hilaire 2022-02-14 16:24:17 -08:00 committed by GitHub
commit 71b82689d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>