aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/search.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-03-02 04:51:45 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2020-03-02 04:51:45 +0200
commit967e99b7f69d24fc76999675cef44b919602dd31 (patch)
tree4128ebda33c7ff04a597f03a2ea46c183ae22f18 /ext/bg/js/search.js
parente6e5f23cf8481db31b94c18244f404dd3374ad90 (diff)
ensure Backend prepare in other places
Diffstat (limited to 'ext/bg/js/search.js')
-rw-r--r--ext/bg/js/search.js5
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);