aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/search-query-parser.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/search-query-parser.js')
-rw-r--r--ext/bg/js/search-query-parser.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/search-query-parser.js b/ext/bg/js/search-query-parser.js
index 2e17688e..f8e53963 100644
--- a/ext/bg/js/search-query-parser.js
+++ b/ext/bg/js/search-query-parser.js
@@ -113,9 +113,9 @@ class QueryParser {
this.queryParser.innerHTML = contents.join('<hr>');
- this.queryParser.querySelectorAll('.query-parser-char').forEach((charElement) => {
+ for (const charElement of this.queryParser.querySelectorAll('.query-parser-char')) {
this.activateScanning(charElement);
- });
+ }
this.search.setSpinnerVisible(false);
}
@@ -133,9 +133,9 @@ class QueryParser {
preview: true
});
- this.queryParser.querySelectorAll('.query-parser-char').forEach((charElement) => {
+ for (const charElement of this.queryParser.querySelectorAll('.query-parser-char')) {
this.activateScanning(charElement);
- });
+ }
}
activateScanning(element) {