From 786ef851c908f19c065f6ddd7faa124cc018c50f Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 7 Jan 2017 19:21:16 -0800 Subject: WIP --- ext/bg/js/options-form.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/bg') 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); -- cgit v1.2.3