Started work on persistent session data

This commit is contained in:
Davide Passoni
2024-12-01 12:40:07 +01:00
parent 42e62be0f5
commit 5e40d7abf1
20 changed files with 794 additions and 252 deletions

View File

@@ -668,7 +668,10 @@ export class ServerManager {
checkSessionHash(newSessionHash: string) {
if (this.#sessionHash != null) {
if (newSessionHash !== this.#sessionHash) location.reload();
} else this.#sessionHash = newSessionHash;
} else {
this.#sessionHash = newSessionHash;
getApp().getSessionDataManager().loadSessionData(newSessionHash);
}
}
setConnected(newConnected: boolean) {