Don't clear local data in offline mode
This commit is contained in:
parent
751120e77e
commit
70ecc51f50
|
@ -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}`);
|
||||
|
|
Loading…
Reference in New Issue