(key: string, value: string)
| 61 | } |
| 62 | |
| 63 | export function safeSetString(key: string, value: string): void { |
| 64 | try { |
| 65 | globalThis.localStorage.setItem(key, value); |
| 66 | } catch { |
| 67 | // storage unavailable (private mode, quota, etc.) — ignore |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | export function safeRemove(key: string): void { |
| 72 | try { |
no test coverage detected