Skip to content

Commit

Permalink
fix archieCookie getter
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Nov 20, 2024
1 parent 958c477 commit 5a06e0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ui/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,13 @@ class ArchiveWebApp extends ReplayWebApp {
this.autorun = (await getLocalOption("autorunBehaviors") === "1");

const archiveCookies = await getLocalOption("archiveCookies");

// default to true if unset to match existing behavior
if (archiveCookies === null) {
await setLocalOption("archiveCookies", "1");
this.archiveCookies = true;
} else {
this.archiveCookies = archiveCookies === "1";
}

this.archiveStorage = await getLocalOption("archiveStorage") === "1";
Expand Down

0 comments on commit 5a06e0f

Please sign in to comment.