From 4729ee34dcd93b6b2f5e1d9d6482893448011062 Mon Sep 17 00:00:00 2001 From: JSuenram Date: Mon, 14 Feb 2022 11:15:49 +0100 Subject: [PATCH] Quick fix for #3362 - Request Confirmation if MeshCentral-Browser-Tab is closed. - Maybe needs an option per User or Config.JSON-Setting --- views/default.handlebars | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/views/default.handlebars b/views/default.handlebars index 0168d700..64034252 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -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 = ''; + }); + \ No newline at end of file