aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/util.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-12-17 21:26:46 -0800
committerAlex Yatskov <alex@foosoft.net>2016-12-17 21:26:46 -0800
commit5be864bb6f1f911bec143566c768bf735a373743 (patch)
tree8f87276459e03e306c9f737f2d2278f77d917ad5 /ext/bg/js/util.js
parent5c755043fa2fb23f94f898fc57828277d7b02049 (diff)
WIP
Diffstat (limited to 'ext/bg/js/util.js')
-rw-r--r--ext/bg/js/util.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index dc606a73..f44ffbc8 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -96,8 +96,9 @@ function sortTermDefs(definitions) {
});
}
-function applyTagMeta(tag, meta) {
- const symbol = tag.name.split(':')[0];
+function buildTag(name, meta) {
+ const tag = {name};
+ const symbol = name.split(':')[0];
for (const prop in meta[symbol] || {}) {
tag[prop] = meta[symbol][prop];
}
@@ -141,7 +142,7 @@ function importJsonDb(indexUrl, indexLoaded, termsLoaded, kanjiLoaded) {
return indexLoaded(
index.title,
index.version,
- index.entities,
+ index.tagMeta,
index.termBanks > 0,
index.kanjiBanks > 0
).then(() => index);