From 15e1cf3358e357968d6c48465fcd15a877bc433a Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 17 Dec 2016 19:08:28 -0800 Subject: [PATCH] Fixes --- ext/bg/js/database.js | 2 +- ext/bg/js/translator.js | 2 +- ext/bg/js/util.js | 2 +- 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]; }