Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Jamrozik committed Jul 9, 2024
1 parent 11c872d commit 748296d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/lib/gameSession/GameSessionData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
1 change: 1 addition & 0 deletions web/src/lib/storedData/StoredData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export class StoredData {
)
this.data = { ...this.data, settings: newSettingsData }
}

public getSaveOnExitEnabled(json: string): boolean {
return !this.getCompressionEnabled(json)
}
Expand Down

0 comments on commit 748296d

Please sign in to comment.