From 70188eacb15b2e1e9b452dab644b43d7c21bd009 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Thu, 18 Aug 2016 20:33:39 -0700 Subject: [PATCH] WIP --- ext/bg/js/yomichan.js | 10 +++++----- 1 file 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;