summaryrefslogtreecommitdiff
path: root/ext/bg/js/search-query-parser.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-15 19:49:20 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-22 14:52:09 -0500
commitc3e7280365a78f648ab15c8460cabfb276e077d4 (patch)
treec7fbc47419838df09ffab51e27b8e00c7a3f684e /ext/bg/js/search-query-parser.js
parentaa76113e756391da64d84d368c3b103c873519cb (diff)
Simplify ternary
Diffstat (limited to 'ext/bg/js/search-query-parser.js')
-rw-r--r--ext/bg/js/search-query-parser.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/search-query-parser.js b/ext/bg/js/search-query-parser.js
index 3d38e6e8..8c434990 100644
--- a/ext/bg/js/search-query-parser.js
+++ b/ext/bg/js/search-query-parser.js
@@ -59,7 +59,7 @@ class QueryParser extends TextScanner {
this.search.setContent('terms', {definitions, context: {
focus: false,
- disableHistory: cause === 'mouse' ? true : false,
+ disableHistory: cause === 'mouse',
sentence: {text: searchText, offset: 0},
url: window.location.href
}});