summaryrefslogtreecommitdiff
path: root/ext/bg/js/ankiconnect.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-10-16 18:56:49 -0700
committerAlex Yatskov <alex@foosoft.net>2016-10-16 18:56:49 -0700
commit153e64e08e6d5775ede97d328178479327aca76d (patch)
treef080df9bd440d69e66df75ae7813808e3f852661 /ext/bg/js/ankiconnect.js
parent052815ae2903bdaa8e8338e9b348a67a82056dd6 (diff)
WIP
Diffstat (limited to 'ext/bg/js/ankiconnect.js')
-rw-r--r--ext/bg/js/ankiconnect.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/ankiconnect.js b/ext/bg/js/ankiconnect.js
index 9de17159..d17f3268 100644
--- a/ext/bg/js/ankiconnect.js
+++ b/ext/bg/js/ankiconnect.js
@@ -69,7 +69,7 @@ class AnkiConnect {
}
if (xhr.responseText) {
- resolve(JSON.parse(resp));
+ resolve(JSON.parse(xhr.responseText));
} else {
reject('unable to connect to plugin');
}