diff --git a/src/client/index.html b/src/client/index.html index c18e82c52..a5ef0a1a9 100644 --- a/src/client/index.html +++ b/src/client/index.html @@ -413,6 +413,10 @@ document.documentElement.classList.remove("preload"); }); }); + window.addEventListener("beforeunload", function (e) { + e.preventDefault(); + e.returnValue = "Are you sure you want to leave?"; + });