summaryrefslogtreecommitdiff
path: root/ext/bg/js/options.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-06-12 14:32:23 -0700
committerAlex Yatskov <alex@foosoft.net>2016-06-14 20:44:38 -0700
commit061cbb0141df513113563c86e5df7c17cd46700f (patch)
tree348902250a9ab755c98bb03e1f27e8ab6a5857eb /ext/bg/js/options.js
parent14fd0d65144bd672bcfb9702fdfb96d0963f350b (diff)
Better selection handling, fixing scan length being treated as a string.
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r--ext/bg/js/options.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index f131ab9b..0a5197f9 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -38,6 +38,8 @@ function sanitizeOptions(options) {
}
}
+ options.scanLength = parseInt(options.scanLength);
+
return options;
}