From 4e3040941038acc4f739e4077aee14cb64d3aa81 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 8 Nov 2020 15:53:06 -0500 Subject: Add api.isAnkiConnected (#1011) --- ext/mixed/js/api.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/mixed/js') diff --git a/ext/mixed/js/api.js b/ext/mixed/js/api.js index 43db1562..947f1cd8 100644 --- a/ext/mixed/js/api.js +++ b/ext/mixed/js/api.js @@ -69,6 +69,10 @@ const api = (() => { return this._invoke('kanjiFind', {text, optionsContext}); } + isAnkiConnected() { + return this._invoke('isAnkiConnected'); + } + addAnkiNote(note) { return this._invoke('addAnkiNote', {note}); } -- cgit v1.2.3