(value)
| 148 | } |
| 149 | |
| 150 | function normalizeHostnameForStorage(value) { |
| 151 | if (typeof value !== 'string') return null; |
| 152 | const host = validateAndExtractHost(value.trim()); |
| 153 | return host ? host.toLowerCase() : null; |
| 154 | } |
| 155 | |
| 156 | function loadStoredHostnames() { |
| 157 | const stored = readStoredJson(SETTINGS_STORAGE_KEYS.hostnames); |
no test coverage detected