summaryrefslogtreecommitdiff
path: root/ext/bg/js/options-form.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/options-form.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);
}
});