summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/bg/js/database.js2
-rw-r--r--ext/bg/js/settings.js2
-rw-r--r--ext/bg/js/util.js4
3 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js
index 1b171b03..630243b2 100644
--- a/ext/bg/js/database.js
+++ b/ext/bg/js/database.js
@@ -154,7 +154,7 @@ class Database {
return result;
}
- async getDictionaries() {
+ async getTitles() {
if (this.db) {
return this.db.dictionaries.toArray();
} else {
diff --git a/ext/bg/js/settings.js b/ext/bg/js/settings.js
index b5ac8c8b..a2580c35 100644
--- a/ext/bg/js/settings.js
+++ b/ext/bg/js/settings.js
@@ -213,7 +213,7 @@ async function dictionaryGroupsPopulate(options) {
const dictGroups = $('#dict-groups').empty();
const dictWarning = $('#dict-warning').hide();
- const dictRows = await utilDatabaseGetDictionaries();
+ const dictRows = await utilDatabaseGetTitles();
if (dictRows.length === 0) {
dictWarning.show();
}
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index a92fd0bc..f44582eb 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -42,8 +42,8 @@ function utilAnkiGetModelFieldNames(modelName) {
return utilBackend().anki.getModelFieldNames(modelName);
}
-function utilDatabaseGetDictionaries() {
- return utilBackend().translator.database.getDictionaries();
+function utilDatabaseGetTitles() {
+ return utilBackend().translator.database.getTitles();
}
function utilDatabasePurge() {