summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/bg/js/database.js2
-rw-r--r--ext/bg/js/translator.js2
-rw-r--r--ext/bg/js/util.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js
index c8820f4e..05cb8acd 100644
--- a/ext/bg/js/database.js
+++ b/ext/bg/js/database.js
@@ -252,8 +252,8 @@ class Database {
reading,
tags,
rules,
- score,
glossary,
+ score: parseInt(score),
dictionary: title
});
}
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index 50f9f510..1d143320 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -31,7 +31,7 @@ class Translator {
}
const promises = [
- loadJsonInt('bg/data/reasons.json'),
+ loadJsonInt('bg/data/deinflect.json'),
this.database.prepare()
];
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index dc606a73..a28692dc 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -97,7 +97,7 @@ function sortTermDefs(definitions) {
}
function applyTagMeta(tag, meta) {
- const symbol = tag.name.split(':')[0];
+ const symbol = tag.tag.split(':')[0];
for (const prop in meta[symbol] || {}) {
tag[prop] = meta[symbol][prop];
}