(key: string, ifNotPresent: T)
| 36 | |
| 37 | class LocalOnlyStorage implements Storage { |
| 38 | get<T>(key: string, ifNotPresent: T): string | T { |
| 39 | try { |
| 40 | return window.localStorage.getItem(prefix + key) ?? ifNotPresent; |
| 41 | } catch { |
| 42 | // Swallow up any security exceptions... |
| 43 | return ifNotPresent; |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | remove(key: string) { |
| 48 | try { |
nothing calls this directly
no outgoing calls
no test coverage detected