diff options
Diffstat (limited to 'ext/bg/js/api.js')
-rw-r--r-- | ext/bg/js/api.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js index 3b9af593..bafbdf39 100644 --- a/ext/bg/js/api.js +++ b/ext/bg/js/api.js @@ -78,14 +78,7 @@ function apiScreenshotGet(options, sender) { } function apiForward(action, params, sender) { - if (!(sender && sender.tab)) { - return Promise.resolve(); - } - - const tabId = sender.tab.id; - return new Promise((resolve) => { - chrome.tabs.sendMessage(tabId, {action, params}, (response) => resolve(response)); - }); + return utilBackend()._onApiForward({action, params}, sender); } function apiFrameInformationGet(sender) { |