aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/driver.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-03-25 16:45:43 -0700
committerAlex Yatskov <alex@foosoft.net>2017-03-25 16:45:43 -0700
commit218db0771fae0754a50cadc1891a042112b58699 (patch)
tree00d1af89da017416a13e2a69ca97f678ef93d446 /ext/fg/js/driver.js
parentbc2bf51a072af45ddc61a7f6b1c5cc3b94f8ad3e (diff)
cleanup, firefox scrolling
Diffstat (limited to 'ext/fg/js/driver.js')
-rw-r--r--ext/fg/js/driver.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/driver.js b/ext/fg/js/driver.js
index 7a56dd9c..036dc2d8 100644
--- a/ext/fg/js/driver.js
+++ b/ext/fg/js/driver.js
@@ -117,7 +117,7 @@ window.driver = new class {
onBgMessage({action, params}, sender, callback) {
const handlers = new class {
- api_optionsSet(options) {
+ optionsSet(options) {
this.options = options;
if (!this.options.enable) {
this.searchClear();
@@ -125,7 +125,7 @@ window.driver = new class {
}
};
- const method = handlers[`api_${action}`];
+ const method = handlers[action];
if (typeof(method) === 'function') {
method.call(this, params);
}