summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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');
}