1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Updated express-handlebars & changed confirmation on page exit.

This commit is contained in:
Ylian Saint-Hilaire 2022-02-14 16:33:49 -08:00
parent 71b82689d5
commit 47ff8ab14e
4 changed files with 18 additions and 7 deletions

View file

@ -17216,10 +17216,9 @@
}
}
// Quick fix for #3362 - Request Confirmation if MeshCentral-Browser-Tab is closed. - Maybe needs an option per User or Config.JSON-Setting
// Request Confirmation if closing while a desktop, terminal session is active
window.addEventListener('beforeunload', function (e) {
e.preventDefault();
e.returnValue = '';
if (((desktop != null) && (xxcurrentView == 11)) || ((terminal != null) && (xxcurrentView = 12))) { e.preventDefault(); e.returnValue = ''; }
});
</script>

View file

@ -0,0 +1 @@
{{{body}}}