Don't clear local data in offline mode

This commit is contained in:
Flashfyre 2024-05-15 01:54:15 -04:00
parent 751120e77e
commit 70ecc51f50

View File

@ -517,6 +517,8 @@ export class GameData {
} }
public clearLocalData(): void { public clearLocalData(): void {
if (bypassLogin)
return;
localStorage.removeItem(`data_${loggedInUser.username}`); localStorage.removeItem(`data_${loggedInUser.username}`);
for (let s = 0; s < 5; s++) for (let s = 0; s < 5; s++)
localStorage.removeItem(`sessionData${s ? s : ''}_${loggedInUser.username}`); localStorage.removeItem(`sessionData${s ? s : ''}_${loggedInUser.username}`);