diff options
Diffstat (limited to 'ext/bg/js/ankiweb.js')
-rw-r--r-- | ext/bg/js/ankiweb.js | 2 |
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 { |