diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-07-17 14:27:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-17 14:27:57 -0400 |
commit | f9c76efea00ff62021119c4d0fcf414e8988be1d (patch) | |
tree | 47007976a68c4fc3ad231abf03615e1be04f782e /ext/bg/js/anki.js | |
parent | fc31e6fab54cdc3be42d4f3867941d3a907b6b88 (diff) |
Fix Anki CORS requests (#666)
Diffstat (limited to 'ext/bg/js/anki.js')
-rw-r--r-- | ext/bg/js/anki.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/anki.js b/ext/bg/js/anki.js index 55953007..a8872a52 100644 --- a/ext/bg/js/anki.js +++ b/ext/bg/js/anki.js @@ -110,7 +110,7 @@ class AnkiConnect { } async _invoke(action, params) { - const result = await requestJson(this._server, 'POST', {action, params, version: this._localVersion}); + const result = await requestJson(this._server, 'POST', {action, params, version: this._localVersion}, true); if (isObject(result)) { const error = result.error; if (typeof error !== 'undefined') { |