Simplify ternary
This commit is contained in:
parent
aa76113e75
commit
c3e7280365
@ -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
|
||||
}});
|
||||
|
Loading…
Reference in New Issue
Block a user