(list)
| 70 | } |
| 71 | |
| 72 | function saveServerList(list) { |
| 73 | localStorage.setItem(STORAGE_KEY, JSON.stringify(normalizeServerList(list))); |
| 74 | } |
| 75 | |
| 76 | function findDuplicateServer(list, wsUrl, excludeId = null) { |
| 77 | return list.find(server => server.id !== excludeId && getServerDedupKey(server) === `ws:${wsUrl}`); |
no test coverage detected