From 9bfe57cc94701104ccca0cbcc862aba6050b890a Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Mon, 1 Jan 2024 01:05:20 -0500 Subject: [PATCH] Reload page after overriding system data with local --- src/battle-phases.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/battle-phases.ts b/src/battle-phases.ts index 34d54c0888a..12bc9e79e96 100644 --- a/src/battle-phases.ts +++ b/src/battle-phases.ts @@ -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