aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-27 21:21:05 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-27 21:21:05 -0800
commit1d49473c1fe054e969004d483cb86fcd979b8d0d (patch)
tree6ae2ef1d49f76b73e8e1deb70b38a5c9a9e8245d /ext/fg/js
parent79194bcafc587d28c9406e8afb35c67b94bd1d34 (diff)
fixing enabled state
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/driver.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/fg/js/driver.js b/ext/fg/js/driver.js
index e595b350..974c4f28 100644
--- a/ext/fg/js/driver.js
+++ b/ext/fg/js/driver.js
@@ -34,8 +34,8 @@ class Driver {
window.addEventListener('keydown', this.onKeyDown.bind(this));
window.addEventListener('resize', e => this.searchClear());
- getOptions().then(opts => {
- this.options = opts;
+ getOptions().then(options => {
+ this.options = options;
return isEnabled();
}).then(enabled => {
this.enabled = enabled;
@@ -208,8 +208,8 @@ class Driver {
this.lastTextSource = null;
}
- api_setOptions(opts) {
- this.options = opts;
+ api_setOptions(options) {
+ this.options = options;
}
api_setEnabled(enabled) {