diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-07-15 23:29:36 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-07-15 23:29:36 -0700 |
commit | f2bd0ec7bb7cd8abf351868929261026429c383a (patch) | |
tree | c5d9635a77d4c18042e0e8d8499732ba3bf4c6b6 /ext/bg/js/options.js | |
parent | 361dd47f0abab271f8ae3bf4ce2cdcc3b0b91c99 (diff) |
Add option to enable and disable audio playback
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r-- | ext/bg/js/options.js | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index eefba95e..18707e43 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -19,18 +19,19 @@ function sanitizeOptions(options) { const defaults = { - scanLength: 20, - activateOnStartup: false, - selectMatchedText: true, - loadEnamDict: false, - enableAnkiConnect: false, - ankiCardTags: ['yomichan'], - ankiVocabDeck: '', - ankiVocabModel: '', - ankiVocabFields: {}, - ankiKanjiDeck: '', - ankiKanjiModel: '', - ankiKanjiFields: {} + scanLength: 20, + activateOnStartup: false, + selectMatchedText: true, + loadEnamDict: false, + enableAudioPlayback: true, + enableAnkiConnect: false, + ankiCardTags: ['yomichan'], + ankiVocabDeck: '', + ankiVocabModel: '', + ankiVocabFields: {}, + ankiKanjiDeck: '', + ankiKanjiModel: '', + ankiKanjiFields: {} }; for (let key in defaults) { |