aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-08-18 20:33:39 -0700
committerAlex Yatskov <alex@foosoft.net>2016-08-18 20:33:39 -0700
commit70188eacb15b2e1e9b452dab644b43d7c21bd009 (patch)
treee6e7b1483eafe3cc9332ada7bc6112f16bc9beba /ext
parentd49042c3d9a2715a72292b91846e31c56ba31141 (diff)
WIP
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/yomichan.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/bg/js/yomichan.js b/ext/bg/js/yomichan.js
index e54f9e4f..4ba28e34 100644
--- a/ext/bg/js/yomichan.js
+++ b/ext/bg/js/yomichan.js
@@ -162,7 +162,7 @@ class Yomichan {
}
formatField(field, definition, mode) {
- const tags = [
+ const markers = [
'audio',
'character',
'expression',
@@ -176,9 +176,9 @@ class Yomichan {
'url',
];
- for (const tag of tags) {
- let value = definition[tag] || null;
- switch (tag) {
+ for (const marker of markers) {
+ let value = definition[marker] || null;
+ switch (marker) {
case 'audio':
value = '';
break;
@@ -212,7 +212,7 @@ class Yomichan {
value = value.join(', ');
}
- field = field.replace(`{${tag}}`, value || '');
+ field = field.replace(`{${marker}}`, value || '');
}
return field;