summaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js')
-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;