diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2020-03-02 11:31:09 +0200 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2020-03-02 11:31:09 +0200 |
commit | 56b2f2c853494b228aa4467a64ed91486432bffd (patch) | |
tree | ece8a42926f4860bfed16285e9f26996bc190228 /ext/mixed/js | |
parent | e0edb30efd51ac18167880d77c2dea11c73a1bfc (diff) |
trigger yomichanCoreReady only when preparing
Diffstat (limited to 'ext/mixed/js')
-rw-r--r-- | ext/mixed/js/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mixed/js/core.js b/ext/mixed/js/core.js index b7ac8743..0e22b9ac 100644 --- a/ext/mixed/js/core.js +++ b/ext/mixed/js/core.js @@ -280,12 +280,12 @@ const yomichan = (() => { ]); chrome.runtime.onMessage.addListener(this._onMessage.bind(this)); - chrome.runtime.sendMessage({action: 'yomichanCoreReady'}); } // Public prepare() { + chrome.runtime.sendMessage({action: 'yomichanCoreReady'}); return this._isBackendPreparedPromise; } |