aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/translator.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/translator.js')
-rw-r--r--ext/bg/translator.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/translator.js b/ext/bg/translator.js
index b03297cb..e76a1b07 100644
--- a/ext/bg/translator.js
+++ b/ext/bg/translator.js
@@ -42,7 +42,7 @@ class Translator {
break;
case 'edict':
case 'enamdict':
- this.dictionary.addTermsData(Translator.parseCsv(response));
+ this.dictionary.addTermData(Translator.parseCsv(response));
break;
}
@@ -159,7 +159,7 @@ class Translator {
static parseCsv(data) {
const result = [];
- for (const row in data.split('\n')) {
+ for (const row of data.split('\n')) {
result.push(row.split('\t'));
}