summaryrefslogtreecommitdiff
path: root/ext/bg/js/anki-null.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/anki-null.js')
-rw-r--r--ext/bg/js/anki-null.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/bg/js/anki-null.js b/ext/bg/js/anki-null.js
index 8dad6915..d82f0e68 100644
--- a/ext/bg/js/anki-null.js
+++ b/ext/bg/js/anki-null.js
@@ -18,27 +18,27 @@
class AnkiNull {
- addNote(note) {
- return Promise.reject('unsupported action');
+ async addNote(note) {
+ return null;
}
- canAddNotes(notes) {
- return Promise.resolve([]);
+ async canAddNotes(notes) {
+ return [];
}
- getDeckNames() {
- return Promise.resolve([]);
+ async getDeckNames() {
+ return [];
}
- getModelNames() {
- return Promise.resolve([]);
+ async getModelNames() {
+ return [];
}
- getModelFieldNames(modelName) {
- return Promise.resolve([]);
+ async getModelFieldNames(modelName) {
+ return [];
}
- guiBrowse(query) {
- return Promise.resolve([]);
+ async guiBrowse(query) {
+ return [];
}
}