summaryrefslogtreecommitdiff
path: root/ext/bg/js/ankiweb.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-10-15 19:05:53 -0700
committerAlex Yatskov <alex@foosoft.net>2016-10-15 19:05:53 -0700
commit7aa6d6feee78307d998596082caf73a3c1577285 (patch)
tree71a158c08c0e277f10887a43339228c8cbb28a3f /ext/bg/js/ankiweb.js
parentef25ad144e8e93ca280ba218b28f981425eed2e3 (diff)
WIP
Diffstat (limited to 'ext/bg/js/ankiweb.js')
-rw-r--r--ext/bg/js/ankiweb.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/ankiweb.js b/ext/bg/js/ankiweb.js
index 5b91594e..d68b81ab 100644
--- a/ext/bg/js/ankiweb.js
+++ b/ext/bg/js/ankiweb.js
@@ -115,7 +115,7 @@ class AnkiWeb {
static login(username, password) {
return new Promise((resolve, reject) => {
$.post('https://ankiweb.net/account/login', {username, password, submitted: 1}, (data, status) => {
- if (status !== 'success') {
+ if (status === 'success') {
if (data.includes('class="mitem"')) {
resolve();
} else {