mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 16:56:11 +00:00
Reload page after overriding system data with local
This commit is contained in:
parent
6ca98ee6b5
commit
9bfe57cc94
@ -118,7 +118,7 @@ export class ConsolidateDataPhase extends BattlePhase {
|
|||||||
.then(response => response.text())
|
.then(response => response.text())
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if (!response.length || response[0] !== '{') {
|
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'));
|
const sessionDataStr = atob(localStorage.getItem('sessionData'));
|
||||||
|
|
||||||
@ -128,10 +128,10 @@ export class ConsolidateDataPhase extends BattlePhase {
|
|||||||
if (error)
|
if (error)
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
|
||||||
this.end();
|
window.location = window.location;
|
||||||
});
|
});
|
||||||
} else
|
} else
|
||||||
this.end();
|
window.location = window.location;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user