diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2020-03-02 04:51:45 +0200 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2020-03-02 04:51:45 +0200 |
commit | 967e99b7f69d24fc76999675cef44b919602dd31 (patch) | |
tree | 4128ebda33c7ff04a597f03a2ea46c183ae22f18 /ext/bg/js/search.js | |
parent | e6e5f23cf8481db31b94c18244f404dd3374ad90 (diff) |
ensure Backend prepare in other places
Diffstat (limited to 'ext/bg/js/search.js')
-rw-r--r-- | ext/bg/js/search.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js index 0a7a5fe1..f3cba7ae 100644 --- a/ext/bg/js/search.js +++ b/ext/bg/js/search.js @@ -68,9 +68,8 @@ class DisplaySearch extends Display { async prepare() { try { - const superPromise = super.prepare(); - const queryParserPromise = this.queryParser.prepare(); - await Promise.all([superPromise, queryParserPromise]); + await super.prepare(); + await this.queryParser.prepare(); const {queryParams: {query='', mode=''}} = parseUrl(window.location.href); |