MCPcopy
hub / github.com/osnr/TabFS / routeFromScript

Function routeFromScript

extension/background.js:325–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323 } : undefined);
324
325 const routeFromScript = code => makeRouteWithContents(async ({tabId}) => {
326 return (await browser.tabs.executeScript(tabId, {code}))[0];
327 });
328
329 Routes["/tabs/by-id/#TAB_ID/url.txt"] = {
330 description: `Text file containing the current URL of this tab.`,

Callers 1

background.jsFile · 0.85

Calls 1

makeRouteWithContentsFunction · 0.85

Tested by

no test coverage detected