aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/anki-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/pages/settings/anki-controller.js')
-rw-r--r--ext/js/pages/settings/anki-controller.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/js/pages/settings/anki-controller.js b/ext/js/pages/settings/anki-controller.js
index 9640ed62..7eb09c85 100644
--- a/ext/js/pages/settings/anki-controller.js
+++ b/ext/js/pages/settings/anki-controller.js
@@ -505,6 +505,22 @@ export class AnkiController {
return null;
}
}
+
+ /**
+ * @param {import('anki').Note[]} notes
+ * @returns {Promise<?((number | null)[] | null)>}
+ */
+ async addNotes(notes) {
+ return await this._ankiConnect.addNotes(notes);
+ }
+
+ /**
+ * @param {import('anki').Note[]} notes
+ * @returns {Promise<boolean[]>}
+ */
+ async canAddNotes(notes) {
+ return await this._ankiConnect.canAddNotes(notes);
+ }
}
class AnkiCardController {