diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2020-03-04 05:30:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-04 05:30:48 +0200 |
commit | 6e47b4e241594d68384f62b1faa34c86f85addbf (patch) | |
tree | d70452c259d1aeff36c7a9485cca137b64c58405 /ext/bg/js/search.js | |
parent | 46fee07d36b3966af9bacca8c6253b044bde07ee (diff) | |
parent | de8d9e6bf12f693d6579a2fb965fd7597a04288c (diff) |
Merge pull request #386 from siikamiika/simplify-backend-prepare
Simplify backend prepare
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); |