Adding default options

This commit is contained in:
Alex Yatskov 2016-05-22 14:26:12 -07:00
parent 7c06a22451
commit ca13c947bb

View File

@ -20,10 +20,14 @@
function sanitizeOptions(options) {
const defaults = {
activateOnStartup: false,
enableAnkiConnect: false,
loadEnamDict: false,
scanLength: 20,
selectMatchedText: true
selectMatchedText: true,
enableAnkiConnect: false,
ankiDeck: '',
ankiModel: '',
ankiVocabFields: {},
ankiKanjiFields: {}
};
for (const key in defaults) {