aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg')
-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');
}