From 1d49473c1fe054e969004d483cb86fcd979b8d0d Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Fri, 27 Jan 2017 21:21:05 -0800 Subject: fixing enabled state --- ext/fg/js/driver.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/fg') 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) { -- cgit v1.2.3