aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-10-16 18:50:07 -0700
committerAlex Yatskov <alex@foosoft.net>2016-10-16 18:50:07 -0700
commit052815ae2903bdaa8e8338e9b348a67a82056dd6 (patch)
treeb42d74c4b28366cae4e1447925de62f9cae6f28f /ext/bg/js
parentc076821e3709333bf19934d547c372d669f8ad84 (diff)
WIP
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/options-form.js7
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);
}
});