summaryrefslogtreecommitdiff
path: root/ext/bg/js/search-query-parser.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-02-10 22:09:23 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2020-02-10 22:09:23 +0200
commit9c98c631afde843f8b5ed4c54fc1f4ff0ec3a00a (patch)
tree0c2c4e0c7cae41e0c89a91c116e482e77d9f5f50 /ext/bg/js/search-query-parser.js
parent4f1ed14f07c1373bc5734a12bbb3203c1b07a2bd (diff)
fix async issues
Diffstat (limited to 'ext/bg/js/search-query-parser.js')
-rw-r--r--ext/bg/js/search-query-parser.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/bg/js/search-query-parser.js b/ext/bg/js/search-query-parser.js
index 3a93c7e7..f648fdd4 100644
--- a/ext/bg/js/search-query-parser.js
+++ b/ext/bg/js/search-query-parser.js
@@ -31,6 +31,10 @@ class QueryParser extends TextScanner {
this.queryParserGenerator = new QueryParserGenerator();
}
+ async prepare() {
+ await this.queryParserGenerator.prepare();
+ }
+
onError(error) {
logError(error, false);
}