Simplify ternary

This commit is contained in:
toasted-nutbread 2020-02-15 19:49:20 -05:00
parent aa76113e75
commit c3e7280365

View File

@ -59,7 +59,7 @@ class QueryParser extends TextScanner {
this.search.setContent('terms', {definitions, context: { this.search.setContent('terms', {definitions, context: {
focus: false, focus: false,
disableHistory: cause === 'mouse' ? true : false, disableHistory: cause === 'mouse',
sentence: {text: searchText, offset: 0}, sentence: {text: searchText, offset: 0},
url: window.location.href url: window.location.href
}}); }});