trigger yomichanCoreReady only when preparing
This commit is contained in:
parent
e0edb30efd
commit
56b2f2c853
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user