Reload page after overriding system data with local

This commit is contained in:
Flashfyre 2024-01-01 01:05:20 -05:00
parent 6ca98ee6b5
commit 9bfe57cc94
1 changed files with 3 additions and 3 deletions

View File

@ -118,7 +118,7 @@ export class ConsolidateDataPhase extends BattlePhase {
.then(response => response.text())
.then(response => {
if (!response.length || response[0] !== '{') {
console.log('System data not found: Loading legacy local session data');
console.log('Session data not found: Loading legacy local session data');
const sessionDataStr = atob(localStorage.getItem('sessionData'));
@ -128,10 +128,10 @@ export class ConsolidateDataPhase extends BattlePhase {
if (error)
console.error(error);
this.end();
window.location = window.location;
});
} else
this.end();
window.location = window.location;
});
});
} else