diff --git a/src/ui/app.ts b/src/ui/app.ts index 3804f12f..de9fdde1 100644 --- a/src/ui/app.ts +++ b/src/ui/app.ts @@ -65,7 +65,7 @@ class ArchiveWebApp extends ReplayWebApp { this.settingsError = ""; - this.settingsTab = localStorage.getItem("settingsTab") || "browsertrix"; + this.settingsTab = localStorage.getItem("settingsTab") || "prefs"; try { const res = localStorage.getItem("ipfsOpts"); @@ -91,6 +91,10 @@ class ArchiveWebApp extends ReplayWebApp { this.btrixOpts = null; } + if (!self.localStorage.getItem("archiveCookies")) { + self.localStorage.setItem("archiveCookies", "1"); + } + getLocalOption("autorunBehaviors").then( (res) => (this.autorun = res === "1"), ); @@ -987,10 +991,21 @@ class ArchiveWebApp extends ReplayWebApp { } renderSettingsModal() { + let archiveCookies = false, + archiveStorage = false; + if (this.settingsTab === "prefs") { + archiveCookies = self.localStorage.getItem("archiveCookies") === "1"; + archiveStorage = self.localStorage.getItem("archiveStorage") === "1"; + } return html`