MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / create

Method create

packages/chrome-extension-mock/tab.ts:27–32  ·  view source on GitHub ↗
(createProperties: chrome.tabs.CreateProperties, callback?: (tab: chrome.tabs.Tab) => void)

Source from the content-addressed store, hash-verified

25 }
26
27 create(createProperties: chrome.tabs.CreateProperties, callback?: (tab: chrome.tabs.Tab) => void) {
28 this.hook.emit("create", createProperties);
29 const tab = { id: 1 } as chrome.tabs.Tab;
30 callback?.(tab);
31 return Promise.resolve(tab);
32 }
33
34 remove(tabId: number) {
35 this.hook.emit("remove", tabId);

Callers

nothing calls this directly

Calls 2

callbackFunction · 0.85
emitMethod · 0.65

Tested by

no test coverage detected