(key: string, input: string | object)
| 20 | } |
| 21 | |
| 22 | set(key: string, input: string | object) { |
| 23 | try { |
| 24 | const value = typeof input === 'object' ? JSON.stringify(input) : input; |
| 25 | return window[`${this.type}Storage`].setItem(key, value); |
| 26 | } catch (exception) { |
| 27 | return null; |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | remove(key: string) { |
| 32 | try { |
no outgoing calls
no test coverage detected