MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / normalizeSettings

Function normalizeSettings

extension/options.js:10–17  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

8const $ = (id) => document.getElementById(id);
9
10function 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
19function setStatus(message, isError = false) {
20 const status = $("status");

Callers 2

loadSettingsFunction · 0.85
saveSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected