diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-01-14 22:42:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-14 22:42:11 -0500 |
commit | 1dcfbf6ba6516d05f756d26bf84049d94776ab14 (patch) | |
tree | 538a1a4346a4f98ba366949eda33b4e981e58766 /ext/mixed/js/api.js | |
parent | d9f5d21d15a8239ecf349d254606be2c8fa70d31 (diff) |
Support suspending new anki cards (#1240)
* Add new option: anki.suspendNewCards
* Update Anki APIs
* Suspend card based on options
* Add setting
* Disable wrap for toggle property
Diffstat (limited to 'ext/mixed/js/api.js')
-rw-r--r-- | ext/mixed/js/api.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mixed/js/api.js b/ext/mixed/js/api.js index 4fde30b0..433a52e2 100644 --- a/ext/mixed/js/api.js +++ b/ext/mixed/js/api.js @@ -93,6 +93,10 @@ const api = (() => { return this._invoke('noteView', {noteId}); } + suspendAnkiCardsForNote(noteId) { + return this._invoke('suspendAnkiCardsForNote', {noteId}); + } + getDefinitionAudioInfo(source, expression, reading, details) { return this._invoke('getDefinitionAudioInfo', {source, expression, reading, details}); } |