Don't clear local data in offline mode

pull/787/merge
Flashfyre 2024-05-15 01:54:15 -04:00
parent 751120e77e
commit 70ecc51f50
1 changed files with 2 additions and 0 deletions

View File

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