Method
create
(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
Tested by
no test coverage detected