(key: string)
| 53 | } |
| 54 | |
| 55 | export function safeGetString(key: string): string | null { |
| 56 | try { |
| 57 | return globalThis.localStorage.getItem(key); |
| 58 | } catch { |
| 59 | return null; |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | export function safeSetString(key: string, value: string): void { |
| 64 | try { |
no test coverage detected