(key: string)
| 1 | // LocalStorage throws an error if all browser cookies are disabled |
| 2 | |
| 3 | export function localGetItem(key: string) { |
| 4 | try { |
| 5 | return localStorage.getItem(key); |
| 6 | } catch (e) { |
| 7 | return null; |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | export function localSetItem(key: string, value: string) { |
| 12 | try { |
no outgoing calls
no test coverage detected