diff options
Diffstat (limited to 'web/share')
-rw-r--r-- | web/share/js/kvm/session.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/share/js/kvm/session.js b/web/share/js/kvm/session.js index 8f340c27..2e4c4f6d 100644 --- a/web/share/js/kvm/session.js +++ b/web/share/js/kvm/session.js @@ -190,6 +190,7 @@ export function Session() { __ws.onerror = __wsErrorHandler; __ws.onclose = __wsCloseHandler; } else if (http.status === 401 || http.status === 403) { + window.onbeforeunload = () => null; wm.error("Unexpected logout occured, please login again").then(function() { document.location.href = "/login"; }); |