summaryrefslogtreecommitdiff
path: root/ext/bg/js/options.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-11 20:21:11 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-11 20:21:11 -0800
commit916751420e28bb055fbf162ffcbf6663c6b828a8 (patch)
tree3bebd20e344cd3ca3cad01f430503865749590dd /ext/bg/js/options.js
parent5c562c0288edc0ea7f53fa8ec6577dd9bd555dba (diff)
sayonara ankiweb1.0.3
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 28448b96..f1fe0dac 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -31,8 +31,6 @@ function sanitizeOptions(options) {
dictionaries: {},
ankiMethod: 'disabled',
- ankiUsername: '',
- ankiPassword: '',
ankiCardTags: ['yomichan'],
sentenceExtent: 200,
@@ -50,6 +48,10 @@ function sanitizeOptions(options) {
}
}
+ if (options.ankiMethod === 'ankiweb') {
+ options.ankiMethod = 'disabled';
+ }
+
return options;
}