From ca13c947bb753445b87ec138d113e5b91e1963ef Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 22 May 2016 14:26:12 -0700 Subject: [PATCH] Adding default options --- ext/bg/js/options.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index 639644f7..d0bbdb5f 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -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) {