summaryrefslogtreecommitdiff
path: root/ext/bg/js/options-form.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-11-07 08:29:21 -0800
committerAlex Yatskov <alex@foosoft.net>2016-11-07 08:29:21 -0800
commita18f3be559b9a8298f93f04837d400a1fff0b2b9 (patch)
tree4223d737f1aee4e43c21ac514a089fa5ffca8d80 /ext/bg/js/options-form.js
parentc11b24cb37948c9cf7dc91c97cdc01ba65db875b (diff)
Renaming things
Diffstat (limited to 'ext/bg/js/options-form.js')
-rw-r--r--ext/bg/js/options-form.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/options-form.js b/ext/bg/js/options-form.js
index 2f2fe6fd..14143d81 100644
--- a/ext/bg/js/options-form.js
+++ b/ext/bg/js/options-form.js
@@ -166,7 +166,7 @@ function populateDictionaries(opts) {
const container = $('.dicts');
container.empty();
- yomichan().translator.dictionary.getDictionaries().then(rows => {
+ yomichan().translator.database.getDictionaries().then(rows => {
rows.forEach(row => {
const dictOpts = opts.dictionaries[row.title] || {enableTerms: true, enableKanji: false};
const html = Handlebars.templates['dictionary.html']({
@@ -184,7 +184,7 @@ function populateDictionaries(opts) {
$('.dict-delete').click(e => {
const dict = $(e.target).closest('.dict');
const title = dict.data('title');
- yomichan().translator.dictionary.deleteDictionary(title);
+ yomichan().translator.database.deleteDictionary(title);
dict.slideUp();
});