summaryrefslogtreecommitdiff
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:26:29 -0700
commitb126682c923800ed15c2169c26a90ddf8720ba14 (patch)
treeb3fca0024f608afac6d1e1f20391c66c10ffc997 /ext/bg/js/options.js
parentc0b8519b333205a956b1278d0ac6d9a1b74ff6ce (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) {