Autoload when needed
This commit is contained in:
parent
03b02070b7
commit
0acc0ad90c
@ -29,6 +29,10 @@ class Yomichan {
|
||||
|
||||
chrome.runtime.onMessage.addListener(this.onMessage.bind(this));
|
||||
chrome.browserAction.onClicked.addListener(this.onBrowserAction.bind(this));
|
||||
|
||||
if (this.options.loadOnStartup) {
|
||||
this.updateState('loading');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user