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:
parent
71b82689d5
commit
47ff8ab14e
4 changed files with 18 additions and 7 deletions
|
@ -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>
|
||||
|
|
1
views/layouts/empty.handlebars
Normal file
1
views/layouts/empty.handlebars
Normal file
|
@ -0,0 +1 @@
|
|||
{{{body}}}
|
Loading…
Add table
Add a link
Reference in a new issue