diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-08-18 20:24:27 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-08-18 20:24:27 -0700 |
commit | c5a7020e2166df44db75c086099363580801de6e (patch) | |
tree | 4682ec92c83f388d51ff85cb0847fdc22f78a9cb /ext/bg/js/options.js | |
parent | b1851c971c3a1fea877f2dc442b223b5d2444775 (diff) |
WIP
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r-- | ext/bg/js/options.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index a1c169a7..8a6f633a 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -19,21 +19,21 @@ function sanitizeOptions(options) { const defaults = { - scanLength: 20, - activateOnStartup: false, - selectMatchedText: true, + scanLength: 20, + activateOnStartup: false, + selectMatchedText: true, showAdvancedOptions: false, - loadEnamDict: false, + loadEnamDict: false, enableAudioPlayback: true, - enableAnkiConnect: false, - ankiCardTags: ['yomichan'], - sentenceExtent: 200, - ankiTermDeck: options.ankiVocabDeck || '', - ankiTermModel: options.ankiVocabModel || '', - ankiTermFields: options.ankiVocabFields || {}, - ankiKanjiDeck: '', - ankiKanjiModel: '', - ankiKanjiFields: {} + enableAnkiConnect: false, + ankiCardTags: ['yomichan'], + sentenceExtent: 200, + ankiTermDeck: options.ankiVocabDeck || '', + ankiTermModel: options.ankiVocabModel || '', + ankiTermFields: options.ankiVocabFields || {}, + ankiKanjiDeck: '', + ankiKanjiModel: '', + ankiKanjiFields: {} }; for (const key in defaults) { |