MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / getStep8CallbackUrlFromTabUpdate

Function getStep8CallbackUrlFromTabUpdate

background.js:3499–3509  ·  view source on GitHub ↗
(tabId, changeInfo, tab, signupTabId)

Source from the content-addressed store, hash-verified

3497}
3498
3499function getStep8CallbackUrlFromTabUpdate(tabId, changeInfo, tab, signupTabId) {
3500 if (typeof navigationUtils !== 'undefined' && navigationUtils?.getStep8CallbackUrlFromTabUpdate) {
3501 return navigationUtils.getStep8CallbackUrlFromTabUpdate(tabId, changeInfo, tab, signupTabId);
3502 }
3503 if (!Number.isInteger(signupTabId) || tabId !== signupTabId) return '';
3504 const candidates = [changeInfo?.url, tab?.url];
3505 for (const candidate of candidates) {
3506 if (isLocalhostOAuthCallbackUrl(candidate)) return candidate;
3507 }
3508 return '';
3509}
3510
3511function getSourceLabel(source) {
3512 if (typeof loggingStatus !== 'undefined' && loggingStatus?.getSourceLabel) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected