// What a screen remembers between visits. Private mode throws on localStorage // rather than returning null: a screen that cannot remember is fine, a screen // that cannot load is not, so both halves swallow the refusal. export function recall(key: string): string | null { try { return localStorage.getItem(key); } catch { return null; } } export function keep(key: string, value: string): void { try { localStorage.setItem(key, value); } catch { // The choice just does not outlive the visit. } }