From b126682c923800ed15c2169c26a90ddf8720ba14 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Thu, 18 Aug 2016 20:24:27 -0700 Subject: WIP --- ext/bg/js/options.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'ext/bg/js/options.js') 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) { -- cgit v1.2.3