aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-12-17 19:08:28 -0800
committerAlex Yatskov <alex@foosoft.net>2016-12-17 19:08:28 -0800
commit15e1cf3358e357968d6c48465fcd15a877bc433a (patch)
tree1ceef406d429f40e6e016d75267ba33818db0d29 /ext/bg/js
parentd98f4566bc856e04f2f6a7d9a7bf49e30867551e (diff)
Fixes
Diffstat (limited to 'ext/bg/js')
-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];
}