diff options
Diffstat (limited to 'ext/js/display/display.js')
-rw-r--r-- | ext/js/display/display.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js index ad9a25b4..8b521d21 100644 --- a/ext/js/display/display.js +++ b/ext/js/display/display.js @@ -543,7 +543,7 @@ class Display extends EventDispatcher { case 'kanji': { let query = urlSearchParams.get('query'); - if (!query) { break; } + if (query === null) { break; } this._query = query; clear = false; @@ -882,7 +882,7 @@ class Display extends EventDispatcher { let {definitions} = content; if (!Array.isArray(definitions)) { - definitions = lookup ? await this._findDefinitions(isTerms, query, wildcardsEnabled, optionsContext) : []; + definitions = lookup && query.length > 0 ? await this._findDefinitions(isTerms, query, wildcardsEnabled, optionsContext) : []; if (this._setContentToken !== token) { return; } content.definitions = definitions; changeHistory = true; |