aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/options.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-08-18 20:24:27 -0700
committerAlex Yatskov <alex@foosoft.net>2016-08-18 20:28:02 -0700
commit1d6223e5405cfa88aa928bddc47df72bf702b649 (patch)
treeb3fca0024f608afac6d1e1f20391c66c10ffc997 /ext/bg/js/options.js
parenteca27326ec4db5b61f1cc4844a3485c3c2cd2a51 (diff)
WIP
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r--ext/bg/js/options.js26
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) {