(key, value)
| 87 | } |
| 88 | |
| 89 | function writeStoredJson(key, value) { |
| 90 | try { |
| 91 | localStorage.setItem(key, JSON.stringify(value)); |
| 92 | return true; |
| 93 | } catch (error) { |
| 94 | console.warn(`Unable to persist settings for ${key}`, error); |
| 95 | return false; |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | function normalizeCountryCode(value) { |
| 100 | if (typeof value !== 'string') return ''; |
no outgoing calls
no test coverage detected