aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/backend.js5
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;