diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-07-10 16:24:31 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-07-10 16:24:31 -0700 |
commit | b0cdf59bd8dae8f44362b14bdf19b243514e31d3 (patch) | |
tree | baff7b58c86d207bddc707fbfc68f2f5b83aa000 /ext/bg/js/anki-null.js | |
parent | efb5ed2af8c0bcf1c0dbfdbeef7c89dad2a106b9 (diff) |
move anki to async
Diffstat (limited to 'ext/bg/js/anki-null.js')
-rw-r--r-- | ext/bg/js/anki-null.js | 24 |
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 []; } } |