From b080e30b14c70ab450ea77e93bce45f93662b7ed Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 8 Aug 2016 19:50:49 -0700 Subject: Metadata --- ext/bg/js/translator.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js index 29edd81a..7b776383 100644 --- a/ext/bg/js/translator.js +++ b/ext/bg/js/translator.js @@ -207,8 +207,9 @@ class Translator { } applyTagMeta(tag) { - for (const prop in this.tagMeta[tag.name] || {}) { - tag[prop] = this.tagMeta[tag.name][prop] || tag[prop]; + const symbol = tag.name.split(':')[0]; + for (const prop in this.tagMeta[symbol] || {}) { + tag[prop] = this.tagMeta[symbol][prop]; } } -- cgit v1.2.3