(tabId, cmd, data, options)
| 97 | * @return {Promise} |
| 98 | */ |
| 99 | export function sendTabCmd(tabId, cmd, data, options) { |
| 100 | return browser.tabs.sendMessage(tabId, { cmd, data }, options).catch(ignoreNoReceiver); |
| 101 | } |
| 102 | |
| 103 | // Used by `injected` |
| 104 | export function sendMessage(payload, { retry } = {}) { |
no outgoing calls
no test coverage detected