Don't clear local data in offline mode

This commit is contained in:
Flashfyre committed 2024-05-15 01:54:15 -04:00
1 parent 751120e77e
commit 70ecc51f50
1 file changed
+2
+2
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}`);