summaryrefslogtreecommitdiff
path: root/ext/bg/js/options.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-11 20:44:53 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-11 20:44:53 -0800
commitc574ef4bc035947aac304b19101a791db3a8b91f (patch)
treef2724b44d6a2a85956e3184da18b15692ad47d4d /ext/bg/js/options.js
parent5c1c894df936fde38a351c8c7db6a6e323f4331c (diff)
parented1b1d91812fcb7283c39415ee7d11330b969b28 (diff)
Merge branch 'master' into dev
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r--ext/bg/js/options.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index 822f5a16..2f0bd189 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -45,8 +45,6 @@ function sanitizeOptions(options) {
dictionaries: {},
ankiMethod: 'disabled',
- ankiUsername: '',
- ankiPassword: '',
ankiCardTags: ['yomichan'],
sentenceExtent: 200,
@@ -64,6 +62,10 @@ function sanitizeOptions(options) {
}
}
+ if (options.ankiMethod === 'ankiweb') {
+ options.ankiMethod = 'disabled';
+ }
+
return options;
}