trigger yomichanCoreReady only when preparing

This commit is contained in:
siikamiika 2020-03-02 11:31:09 +02:00
parent e0edb30efd
commit 56b2f2c853

View File

@ -280,12 +280,12 @@ const yomichan = (() => {
]); ]);
chrome.runtime.onMessage.addListener(this._onMessage.bind(this)); chrome.runtime.onMessage.addListener(this._onMessage.bind(this));
chrome.runtime.sendMessage({action: 'yomichanCoreReady'});
} }
// Public // Public
prepare() { prepare() {
chrome.runtime.sendMessage({action: 'yomichanCoreReady'});
return this._isBackendPreparedPromise; return this._isBackendPreparedPromise;
} }