If error was unauthorized, do a reload.
This commit is contained in:
parent
bdae5dd9f8
commit
363b017977
|
@ -357,6 +357,9 @@ if ( currentView != 'none' && currentView != 'login' ) {
|
||||||
.done(setNavBar)
|
.done(setNavBar)
|
||||||
.fail(function(jqxhr, textStatus, error) {
|
.fail(function(jqxhr, textStatus, error) {
|
||||||
console.log("Request Failed: " + textStatus + ", " + error);
|
console.log("Request Failed: " + textStatus + ", " + error);
|
||||||
|
if (error == 'Unauthorized') {
|
||||||
|
window.location.reload(true);
|
||||||
|
}
|
||||||
if ( ! jqxhr.responseText ) {
|
if ( ! jqxhr.responseText ) {
|
||||||
console.log("No responseText in jqxhr");
|
console.log("No responseText in jqxhr");
|
||||||
console.log(jqxhr);
|
console.log(jqxhr);
|
||||||
|
|
Loading…
Reference in New Issue