diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-04-06 21:04:38 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-04-06 21:04:38 -0700 |
commit | 0acc0ad90ce862d30c2c4480b64d65a2e3d10ca1 (patch) | |
tree | 828af8505cc3458e5a12544d98eacad76272b658 /ext/bg/js | |
parent | 03b02070b7b5ec14867c286c5aafc9f676ccea91 (diff) |
Autoload when needed
Diffstat (limited to 'ext/bg/js')
-rw-r--r-- | ext/bg/js/yomichan.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/bg/js/yomichan.js b/ext/bg/js/yomichan.js index 05da4007..a66c1244 100644 --- a/ext/bg/js/yomichan.js +++ b/ext/bg/js/yomichan.js @@ -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'); + } }); } |