Adding default options
This commit is contained in:
parent
7c06a22451
commit
ca13c947bb
@ -20,10 +20,14 @@
|
|||||||
function sanitizeOptions(options) {
|
function sanitizeOptions(options) {
|
||||||
const defaults = {
|
const defaults = {
|
||||||
activateOnStartup: false,
|
activateOnStartup: false,
|
||||||
enableAnkiConnect: false,
|
|
||||||
loadEnamDict: false,
|
loadEnamDict: false,
|
||||||
scanLength: 20,
|
scanLength: 20,
|
||||||
selectMatchedText: true
|
selectMatchedText: true,
|
||||||
|
enableAnkiConnect: false,
|
||||||
|
ankiDeck: '',
|
||||||
|
ankiModel: '',
|
||||||
|
ankiVocabFields: {},
|
||||||
|
ankiKanjiFields: {}
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const key in defaults) {
|
for (const key in defaults) {
|
||||||
|
Loading…
Reference in New Issue
Block a user