diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-10-16 18:50:07 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-10-16 18:50:07 -0700 |
commit | 052815ae2903bdaa8e8338e9b348a67a82056dd6 (patch) | |
tree | b42d74c4b28366cae4e1447925de62f9cae6f28f /ext | |
parent | c076821e3709333bf19934d547c372d669f8ad84 (diff) |
WIP
Diffstat (limited to 'ext')
-rw-r--r-- | ext/bg/js/options-form.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/bg/js/options-form.js b/ext/bg/js/options-form.js index 6731c007..c6bc5ae9 100644 --- a/ext/bg/js/options-form.js +++ b/ext/bg/js/options-form.js @@ -215,7 +215,12 @@ function onOptionsChanged(e) { yomichan().setOptions(optsNew); updateVisibility(optsNew); - if (optsNew.ankiMethod !== optsOld.ankiMethod) { + const invalidated = + optsNew.ankiMethod !== optsOld.ankiMethod || + optsNew.ankiUsername !== optsOld.ankiUsername || + optsNew.ankiPassword !== optsOld.ankiPassword; + + if (invalidated) { populateAnkiDeckAndModel(optsNew); } }); |