This commit is contained in:
Alex Yatskov 2016-09-14 22:40:35 -07:00
parent 0eb54e24c6
commit c3ead3af93
2 changed files with 13 additions and 13 deletions

View File

@ -32,7 +32,7 @@ function fieldsToDict(selection) {
function modelIdToFieldOptKey(id) {
return {
'anki-term-model': 'ankiTermFields',
'anki-term-model': 'ankiTermFields',
'anki-kanji-model': 'ankiKanjiFields'
}[id];
}

View File

@ -19,20 +19,20 @@
function sanitizeOptions(options) {
const defaults = {
scanLength: 20,
activateOnStartup: false,
selectMatchedText: true,
scanLength: 20,
activateOnStartup: false,
selectMatchedText: true,
showAdvancedOptions: false,
enableAudioPlayback: true,
enableAnkiConnect: false,
ankiCardTags: ['yomichan'],
sentenceExtent: 200,
ankiTermDeck: '',
ankiTermModel: '',
ankiTermFields: {},
ankiKanjiDeck: '',
ankiKanjiModel: '',
ankiKanjiFields: {}
enableAnkiConnect: false,
ankiCardTags: ['yomichan'],
sentenceExtent: 200,
ankiTermDeck: '',
ankiTermModel: '',
ankiTermFields: {},
ankiKanjiDeck: '',
ankiKanjiModel: '',
ankiKanjiFields: {}
};
for (const key in defaults) {