diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-12-12 14:57:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-12 14:57:24 -0500 |
commit | 5948229176d9a23f1a8fe9f7125c32bece34f100 (patch) | |
tree | 23b24b78bd5427680fd0ffca2a509f44eb2f6bfb /ext/bg/js/anki.js | |
parent | 92cfd31c0faf333c3affb2c9a7b14c4960cf156a (diff) |
Add info page (#1102)
* Add api.getAnkiConnectVersion
* Enable basic functionality when certain features/elements aren't present
* Add info page
* Update information links
* Update info link on the settings v2 page
Diffstat (limited to 'ext/bg/js/anki.js')
-rw-r--r-- | ext/bg/js/anki.js | 6 |
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(); |