Properly reset data when logging out to avoid data leakage

This commit is contained in:
Flashfyre committed 2024-04-09 18:48:34 -04:00
1 parent 3e5a0d5c9c
commit 15e3fefd80
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -284,7 +284,7 @@ export default class MenuUiHandler extends MessageUiHandler {
if (!res.ok)
console.error(`Log out failed (${res.status}: ${res.statusText})`);
Utils.setCookie(Utils.sessionIdKey, '');
updateUserInfo().then(() => this.scene.reset(true));
updateUserInfo().then(() => this.scene.reset(true, true));
});
};
if (this.scene.currentBattle) {