(key: string, module: string)
| 26 | } |
| 27 | |
| 28 | get(key: string, module: string): any { |
| 29 | if (!key || typeof key !== 'string' || key.length === 0) { |
| 30 | logger.error('Invalid key when getting from preference', key); |
| 31 | return; |
| 32 | } |
| 33 | const storageKey = this.getStorageKey(key, module); |
| 34 | const result = store.get(storageKey); |
| 35 | logger.debug('storageKey:', storageKey, 'get with result:', result); |
| 36 | return result; |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * check if local storage contain certain key |
nothing calls this directly
no test coverage detected