mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 16:56:11 +00:00
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
Block a user