summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-08-08 19:50:49 -0700
committerAlex Yatskov <alex@foosoft.net>2016-08-08 19:50:49 -0700
commitb080e30b14c70ab450ea77e93bce45f93662b7ed (patch)
tree756f84e33bd0cecd0c4e23fa1ec6a7643155e766
parentafef392491bded046299b7812f665dbe5193a25f (diff)
Metadata
-rw-r--r--ext/bg/js/translator.js5
1 files changed, 3 insertions, 2 deletions
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];
}
}