summaryrefslogtreecommitdiff
path: root/ext/bg/js/anki.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/anki.js')
-rw-r--r--ext/bg/js/anki.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/bg/js/anki.js b/ext/bg/js/anki.js
index 8395518f..8693bc9a 100644
--- a/ext/bg/js/anki.js
+++ b/ext/bg/js/anki.js
@@ -49,6 +49,12 @@ class AnkiConnect {
}
}
+ async getVersion() {
+ if (!this._enabled) { return null; }
+ await this._checkVersion();
+ return await this._invoke('version', {});
+ }
+
async addNote(note) {
if (!this._enabled) { return null; }
await this._checkVersion();