.
This commit is contained in:
parent
0eb54e24c6
commit
c3ead3af93
@ -32,7 +32,7 @@ function fieldsToDict(selection) {
|
|||||||
|
|
||||||
function modelIdToFieldOptKey(id) {
|
function modelIdToFieldOptKey(id) {
|
||||||
return {
|
return {
|
||||||
'anki-term-model': 'ankiTermFields',
|
'anki-term-model': 'ankiTermFields',
|
||||||
'anki-kanji-model': 'ankiKanjiFields'
|
'anki-kanji-model': 'ankiKanjiFields'
|
||||||
}[id];
|
}[id];
|
||||||
}
|
}
|
||||||
|
@ -19,20 +19,20 @@
|
|||||||
|
|
||||||
function sanitizeOptions(options) {
|
function sanitizeOptions(options) {
|
||||||
const defaults = {
|
const defaults = {
|
||||||
scanLength: 20,
|
scanLength: 20,
|
||||||
activateOnStartup: false,
|
activateOnStartup: false,
|
||||||
selectMatchedText: true,
|
selectMatchedText: true,
|
||||||
showAdvancedOptions: false,
|
showAdvancedOptions: false,
|
||||||
enableAudioPlayback: true,
|
enableAudioPlayback: true,
|
||||||
enableAnkiConnect: false,
|
enableAnkiConnect: false,
|
||||||
ankiCardTags: ['yomichan'],
|
ankiCardTags: ['yomichan'],
|
||||||
sentenceExtent: 200,
|
sentenceExtent: 200,
|
||||||
ankiTermDeck: '',
|
ankiTermDeck: '',
|
||||||
ankiTermModel: '',
|
ankiTermModel: '',
|
||||||
ankiTermFields: {},
|
ankiTermFields: {},
|
||||||
ankiKanjiDeck: '',
|
ankiKanjiDeck: '',
|
||||||
ankiKanjiModel: '',
|
ankiKanjiModel: '',
|
||||||
ankiKanjiFields: {}
|
ankiKanjiFields: {}
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const key in defaults) {
|
for (const key in defaults) {
|
||||||
|
Loading…
Reference in New Issue
Block a user