()
| 124 | } |
| 125 | |
| 126 | function migrateServerList() { |
| 127 | const rawText = localStorage.getItem(STORAGE_KEY); |
| 128 | if (!rawText) return; |
| 129 | try { |
| 130 | const raw = JSON.parse(rawText); |
| 131 | const normalized = normalizeServerList(raw); |
| 132 | if (JSON.stringify(raw) !== JSON.stringify(normalized)) saveServerList(normalized); |
| 133 | } catch { |
| 134 | saveServerList([]); |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | // ---- Hub probe ---- |
| 139 | function createHubProbeInfo() { |
no test coverage detected