mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-30 12:47:12 +00:00
Fix always clearing first slot in offline mode
This commit is contained in:
parent
3f9158083e
commit
f540b7d17f
@ -754,7 +754,7 @@ export class GameData {
|
|||||||
tryClearSession(scene: BattleScene, slotId: integer): Promise<[success: boolean, newClear: boolean]> {
|
tryClearSession(scene: BattleScene, slotId: integer): Promise<[success: boolean, newClear: boolean]> {
|
||||||
return new Promise<[boolean, boolean]>(resolve => {
|
return new Promise<[boolean, boolean]>(resolve => {
|
||||||
if (bypassLogin) {
|
if (bypassLogin) {
|
||||||
localStorage.removeItem('sessionData');
|
localStorage.removeItem(`sessionData${slotId ? slotId : ''}`);
|
||||||
return resolve([true, true]);
|
return resolve([true, true]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user