summaryrefslogtreecommitdiff
path: root/ext/mixed/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-27 20:33:13 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-27 20:33:13 -0500
commit8e29da0c6bd0b80dc6c9e37a525a37258518c293 (patch)
tree9acb9196420d2cafdfae63191bf85979727e3108 /ext/mixed/js
parentfdfc2d33bbcd32f2984e74bd58a518fcc50705d2 (diff)
Load default Anki field templates from a file
Diffstat (limited to 'ext/mixed/js')
-rw-r--r--ext/mixed/js/api.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mixed/js/api.js b/ext/mixed/js/api.js
index 7ea68d59..26f4389d 100644
--- a/ext/mixed/js/api.js
+++ b/ext/mixed/js/api.js
@@ -117,6 +117,10 @@ function apiGetMessageToken() {
return _apiInvoke('getMessageToken');
}
+function apiGetDefaultAnkiFieldTemplates() {
+ return _apiInvoke('getDefaultAnkiFieldTemplates');
+}
+
function _apiInvoke(action, params={}) {
const data = {action, params};
return new Promise((resolve, reject) => {