diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2020-03-04 05:28:22 +0200 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2020-03-04 05:28:22 +0200 |
commit | de8d9e6bf12f693d6579a2fb965fd7597a04288c (patch) | |
tree | d70452c259d1aeff36c7a9485cca137b64c58405 | |
parent | 9ceb663f290f3167bd427171a4f5cc2116e1a765 (diff) |
fix return type
-rw-r--r-- | ext/bg/js/backend.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index 0677b4b1..5b7ab084 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -278,10 +278,11 @@ class Backend { // Message handlers - async _onApiYomichanCoreReady(_params, sender) { + _onApiYomichanCoreReady(_params, sender) { // tab ID isn't set in background (e.g. browser_action) if (typeof sender.tab === 'undefined') { - return chrome.runtime.sendMessage({action: 'backendPrepared'}); + chrome.runtime.sendMessage({action: 'backendPrepared'}); + return Promise.resolve(); } const tabId = sender.tab.id; |