From 363b017977a551480dc2cc881724aa280159de7d Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 12 May 2021 10:31:22 -0400 Subject: [PATCH] If error was unauthorized, do a reload. --- web/skins/classic/js/skin.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/skins/classic/js/skin.js b/web/skins/classic/js/skin.js index 4d496cf51..3268ccf05 100644 --- a/web/skins/classic/js/skin.js +++ b/web/skins/classic/js/skin.js @@ -357,6 +357,9 @@ if ( currentView != 'none' && currentView != 'login' ) { .done(setNavBar) .fail(function(jqxhr, textStatus, error) { console.log("Request Failed: " + textStatus + ", " + error); + if (error == 'Unauthorized') { + window.location.reload(true); + } if ( ! jqxhr.responseText ) { console.log("No responseText in jqxhr"); console.log(jqxhr);