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

Function rememberSourceLastUrl

background/tab-runtime.js:52–58  ·  view source on GitHub ↗
(source, url)

Source from the content-addressed store, hash-verified

50 }
51
52 async function rememberSourceLastUrl(source, url) {
53 if (!source || !url) return;
54 const state = await getState();
55 const sourceLastUrls = { ...(state.sourceLastUrls || {}) };
56 sourceLastUrls[source] = url;
57 await setState({ sourceLastUrls });
58 }
59
60 async function closeConflictingTabsForSource(source, currentUrl, options = {}) {
61 const { excludeTabIds = [] } = options;

Callers 5

reuseOrCreateTabFunction · 0.70
requestCpaOAuthUrlFunction · 0.70
requestSub2ApiOAuthUrlFunction · 0.70
executeCpaStep9Function · 0.50
executeSub2ApiStep9Function · 0.50

Calls 2

getStateFunction · 0.85
setStateFunction · 0.85

Tested by

no test coverage detected