From ebd4777e98419944a9e2deeaa1aa9b603f1c53b2 Mon Sep 17 00:00:00 2001 From: choelzl Date: Wed, 9 Feb 2022 13:09:53 +0100 Subject: [PATCH] WIP --- web/js/socketWrapper.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/js/socketWrapper.js b/web/js/socketWrapper.js index 3552185..d6df7d1 100644 --- a/web/js/socketWrapper.js +++ b/web/js/socketWrapper.js @@ -537,6 +537,10 @@ $(function() { if (message.authresult !== undefined) { if (message.authresult === 'false') { helpers.logError('Failed to auth with the socket.', helpers.LOG_TYPE.FORCE); + if(localStorage.getItem('lauth')!=null && localStorage.getItem('lauth')!=""){ + localStorage.setItem('lauth','') + window.location.reload(); + } } else { // This is to stop a reconnect loading the main page. if (helpers.isAuth === true) {