(values)
| 8 | const $ = (id) => document.getElementById(id); |
| 9 | |
| 10 | function normalizeSettings(values) { |
| 11 | return { |
| 12 | serverUrl: (values.serverUrl || DEFAULT_SETTINGS.serverUrl).trim(), |
| 13 | apiKey: (values.apiKey || "").trim(), |
| 14 | routeKey: (values.routeKey || "").trim(), |
| 15 | clientLabel: (values.clientLabel || "").trim() |
| 16 | }; |
| 17 | } |
| 18 | |
| 19 | function setStatus(message, isError = false) { |
| 20 | const status = $("status"); |
no outgoing calls
no test coverage detected