Skip to content

Commit 5a06e0f

Browse files
committed
fix archieCookie getter
1 parent 958c477 commit 5a06e0f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ui/app.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,13 @@ class ArchiveWebApp extends ReplayWebApp {
109109
this.autorun = (await getLocalOption("autorunBehaviors") === "1");
110110

111111
const archiveCookies = await getLocalOption("archiveCookies");
112+
112113
// default to true if unset to match existing behavior
113114
if (archiveCookies === null) {
114115
await setLocalOption("archiveCookies", "1");
115116
this.archiveCookies = true;
117+
} else {
118+
this.archiveCookies = archiveCookies === "1";
116119
}
117120

118121
this.archiveStorage = await getLocalOption("archiveStorage") === "1";

0 commit comments

Comments
 (0)