aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-09-13 17:30:45 -0700
committerAlex Yatskov <alex@foosoft.net>2017-09-13 17:30:45 -0700
commit04f9a0f54316d123628168aa5a15e8e48907d783 (patch)
tree162c35e42bd40e63b4e398afdb594575ce2714fb /ext/bg/js
parent4d4b819d6c197df6e0f91ba170d0ee909dfcb5c9 (diff)
cleanup
Diffstat (limited to 'ext/bg/js')
-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() {