MCPcopy Create free account
hub / github.com/QLHazyCoder/FlowPilot / getSub2ApiOrigin

Function getSub2ApiOrigin

content/sub2api-panel.js:43–50  ·  view source on GitHub ↗
(payload = {})

Source from the content-addressed store, hash-verified

41}
42
43function getSub2ApiOrigin(payload = {}) {
44 const rawUrl = payload.sub2apiUrl || location.href;
45 try {
46 return new URL(rawUrl).origin;
47 } catch {
48 return location.origin;
49 }
50}
51
52function normalizeRedirectUri() {
53 const input = SUB2API_DEFAULT_REDIRECT_URI;

Callers 1

loginSub2ApiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected