Autoload when needed

This commit is contained in:
Alex Yatskov 2016-04-06 21:04:38 -07:00
parent 03b02070b7
commit 0acc0ad90c

View File

@ -29,6 +29,10 @@ class Yomichan {
chrome.runtime.onMessage.addListener(this.onMessage.bind(this)); chrome.runtime.onMessage.addListener(this.onMessage.bind(this));
chrome.browserAction.onClicked.addListener(this.onBrowserAction.bind(this)); chrome.browserAction.onClicked.addListener(this.onBrowserAction.bind(this));
if (this.options.loadOnStartup) {
this.updateState('loading');
}
}); });
} }