diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-14 22:34:44 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-14 22:34:44 -0500 |
commit | faf15c08aa6777d1ae2d112c55659e08d53156c6 (patch) | |
tree | 194d7fc51bcbdf159393b2ef284e5b00e77936e7 /ext/fg | |
parent | 89cb98e4d14ad4980133f8e8e44b15d56c3ebea5 (diff) |
Rename optionsUpdate event to optionsUpdated
Past tense better indicates that the options were changed, but no data
is being included as part of the event. It is also more consistent with
the other event names the yomichan object currently provides.
Diffstat (limited to 'ext/fg')
-rw-r--r-- | ext/fg/js/frontend.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js index a620fb03..c3050514 100644 --- a/ext/fg/js/frontend.js +++ b/ext/fg/js/frontend.js @@ -56,7 +56,7 @@ class Frontend extends TextScanner { } yomichan.on('orphaned', () => this.onOrphaned()); - yomichan.on('optionsUpdate', () => this.updateOptions()); + yomichan.on('optionsUpdated', () => this.updateOptions()); yomichan.on('zoomChanged', (e) => this.onZoomChanged(e)); chrome.runtime.onMessage.addListener(this.onRuntimeMessage.bind(this)); |