diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-01-07 19:21:16 -0800 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-01-07 19:21:16 -0800 |
commit | 786ef851c908f19c065f6ddd7faa124cc018c50f (patch) | |
tree | 57b26564fa00fcd749b9fe5b3b69f58e7e791194 /ext/bg | |
parent | d770030688536403455132f24907725138528ef4 (diff) |
WIP
Diffstat (limited to 'ext/bg')
-rw-r--r-- | ext/bg/js/options-form.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/bg/js/options-form.js b/ext/bg/js/options-form.js index 20d516dd..a8715ed8 100644 --- a/ext/bg/js/options-form.js +++ b/ext/bg/js/options-form.js @@ -349,7 +349,6 @@ function populateAnkiDeckAndModel(opts) { showAnkiSpinner(true); const ankiFormat = $('#anki-format').hide(); - return Promise.all([anki().getDeckNames(), anki().getModelNames()]).then(([deckNames, modelNames]) => { const ankiDeck = $('.anki-deck'); ankiDeck.find('option').remove(); @@ -441,7 +440,7 @@ function onOptionsChanged(e) { showAnkiError(null); showAnkiSpinner(true); return anki().logout().then(() => populateAnkiDeckAndModel(optsNew)); - } else if (loginChanged || optsNew.ankiMethod !== optsOld.ankiMethod) { + } else if (optsNew.ankiMethod !== optsOld.ankiMethod) { showAnkiError(null); showAnkiSpinner(true); return populateAnkiDeckAndModel(optsNew); |