aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/options-form.js
diff options
context:
space:
mode:
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();
});