diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-15 19:49:20 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-22 14:52:09 -0500 |
commit | c3e7280365a78f648ab15c8460cabfb276e077d4 (patch) | |
tree | c7fbc47419838df09ffab51e27b8e00c7a3f684e | |
parent | aa76113e756391da64d84d368c3b103c873519cb (diff) |
Simplify ternary
-rw-r--r-- | ext/bg/js/search-query-parser.js | 2 |
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 }}); |