()
| 76 | |
| 77 | /** The browser's own storage, when this build is running in one. */ |
| 78 | export function browserStore(): KeyValueStore | undefined { |
| 79 | try { |
| 80 | return typeof localStorage === 'undefined' ? undefined : localStorage; |
| 81 | } catch { |
| 82 | return undefined; |
| 83 | } |
| 84 | } |