Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions v2/src/lib/prefs.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
const KEY = "shieldopt.autoUpdate";

// Opt-in: off unless the user explicitly enables it. The build is unsigned, so
// silently downloading + installing a new version on launch (possibly mid-task)
// is surprising — the update is still surfaced via the badge / "Update now".
export function getAutoUpdate(): boolean {
if (typeof localStorage === "undefined") return true;
return localStorage.getItem(KEY) !== "false";
if (typeof localStorage === "undefined") return false;
return localStorage.getItem(KEY) === "true";
}

export function setAutoUpdate(enabled: boolean): void {
Expand Down
Loading