aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-12-12 14:57:24 -0500
committerGitHub <noreply@github.com>2020-12-12 14:57:24 -0500
commit5948229176d9a23f1a8fe9f7125c32bece34f100 (patch)
tree23b24b78bd5427680fd0ffca2a509f44eb2f6bfb /ext/mixed/js
parent92cfd31c0faf333c3affb2c9a7b14c4960cf156a (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/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 c840adca..32dd332e 100644
--- a/ext/mixed/js/api.js
+++ b/ext/mixed/js/api.js
@@ -73,6 +73,10 @@ const api = (() => {
return this._invoke('isAnkiConnected');
}
+ getAnkiConnectVersion() {
+ return this._invoke('getAnkiConnectVersion');
+ }
+
addAnkiNote(note) {
return this._invoke('addAnkiNote', {note});
}