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

Function getSettings

extension/background.js:12–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10};
11
12function getSettings() {
13 return new Promise((resolve) => {
14 chrome.storage.local.get(DEFAULT_SETTINGS, (stored) => {
15 resolve({
16 serverUrl: (stored.serverUrl || DEFAULT_SETTINGS.serverUrl).trim(),
17 apiKey: (stored.apiKey || "").trim(),
18 routeKey: (stored.routeKey || "").trim(),
19 clientLabel: (stored.clientLabel || "").trim()
20 });
21 });
22 });
23}
24
25function closeSocket() {
26 if (heartbeatInterval) clearInterval(heartbeatInterval);

Callers 1

connectWSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected