(key: string)
| 89 | } |
| 90 | |
| 91 | function read(key: string) { |
| 92 | if (typeof localStorage !== "object") return null |
| 93 | try { |
| 94 | return localStorage.getItem(key) |
| 95 | } catch { |
| 96 | return null |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | function write(key: string, value: string) { |
| 101 | if (typeof localStorage !== "object") return |