From 748296d4106c4b62a764a0e802bf8536c4bf6ab4 Mon Sep 17 00:00:00 2001 From: Konrad Jamrozik Date: Mon, 8 Jul 2024 23:08:52 -0700 Subject: [PATCH] minor --- web/src/lib/gameSession/GameSessionData.ts | 2 +- web/src/lib/storedData/StoredData.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/lib/gameSession/GameSessionData.ts b/web/src/lib/gameSession/GameSessionData.ts index a1aa619..6e9b8e8 100644 --- a/web/src/lib/gameSession/GameSessionData.ts +++ b/web/src/lib/gameSession/GameSessionData.ts @@ -217,7 +217,7 @@ export class GameSessionData { private setData(data: GameSessionDataType): void { GameSessionData.verify(data.turns) // Uncomment to save game session data on every update. - // Now it is saveed only on exit. + // Now it is saved only on exit. // this.storedData.saveGameSessionData(data) this._setData(data) // kja is this necessary? diff --git a/web/src/lib/storedData/StoredData.ts b/web/src/lib/storedData/StoredData.ts index 72615b1..04436c1 100644 --- a/web/src/lib/storedData/StoredData.ts +++ b/web/src/lib/storedData/StoredData.ts @@ -57,6 +57,7 @@ export class StoredData { ) this.data = { ...this.data, settings: newSettingsData } } + public getSaveOnExitEnabled(json: string): boolean { return !this.getCompressionEnabled(json) }