summaryrefslogtreecommitdiff
path: root/ext/bg/js/translator.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/translator.js')
-rw-r--r--ext/bg/js/translator.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index 6be80581..606f6ec5 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -131,11 +131,11 @@ class Translator {
}
findKanji(text) {
- let results = [];
-
+ let results = [];
const processed = {};
+
for (const c of text) {
- if (!processed.has(c)) {
+ if (!processed[c]) {
results = results.concat(this.dictionary.findKanji(c));
processed[c] = true;
}