summaryrefslogtreecommitdiff
path: root/ext/bg/js/yomichan.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-07-19 21:41:30 -0700
committerAlex Yatskov <alex@foosoft.net>2017-07-19 21:41:30 -0700
commitac2e079c98f87acfbafd2105461885a1cb199c76 (patch)
tree7ed953a25ce01176a1578b7d13c4652f55658190 /ext/bg/js/yomichan.js
parentfe137e94c92cf0366735936b6ac82dc147b1ad33 (diff)
cleanup
Diffstat (limited to 'ext/bg/js/yomichan.js')
-rw-r--r--ext/bg/js/yomichan.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/bg/js/yomichan.js b/ext/bg/js/yomichan.js
index eb083396..214bdef3 100644
--- a/ext/bg/js/yomichan.js
+++ b/ext/bg/js/yomichan.js
@@ -59,6 +59,12 @@ window.yomichan = new class {
} else {
this.anki = new AnkiNull();
}
+
+ chrome.tabs.query({}, tabs => {
+ for (const tab of tabs) {
+ chrome.tabs.sendMessage(tab.id, {action: 'optionsSet', params: options}, () => null);
+ }
+ });
}
noteFormat(definition, mode) {