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

Function finish

extension/background.js:47–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 return new Promise((resolve) => {
46 let settled = false;
47 const finish = () => {
48 if (settled) return;
49 settled = true;
50 chrome.tabs.onUpdated.removeListener(onUpdated);
51 clearTimeout(timer);
52 resolve();
53 };
54 const onUpdated = (updatedTabId, changeInfo) => {
55 if (updatedTabId === tabId && changeInfo.status === "complete") {
56 finish();

Callers 4

onUpdatedFunction · 0.85
waitForTabReadyFunction · 0.85
runFunction · 0.85
handleGetTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected