summaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-06 21:04:38 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-06 21:04:38 -0700
commit0acc0ad90ce862d30c2c4480b64d65a2e3d10ca1 (patch)
tree828af8505cc3458e5a12544d98eacad76272b658 /ext/bg
parent03b02070b7b5ec14867c286c5aafc9f676ccea91 (diff)
Autoload when needed
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/yomichan.js4
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');
+ }
});
}