aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/options.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-07-15 23:29:36 -0700
committerAlex Yatskov <alex@foosoft.net>2016-07-15 23:29:36 -0700
commitf2bd0ec7bb7cd8abf351868929261026429c383a (patch)
treec5d9635a77d4c18042e0e8d8499732ba3bf4c6b6 /ext/bg/js/options.js
parent361dd47f0abab271f8ae3bf4ce2cdcc3b0b91c99 (diff)
Add option to enable and disable audio playback
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r--ext/bg/js/options.js25
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) {