summaryrefslogtreecommitdiff
path: root/ext/bg/js/options.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-05-22 14:26:12 -0700
committerAlex Yatskov <alex@foosoft.net>2016-05-22 14:26:12 -0700
commitca13c947bb753445b87ec138d113e5b91e1963ef (patch)
treecdb3d7f16867a408f61b6cfc249988e088839c7d /ext/bg/js/options.js
parent7c06a224514ed4288122160bfac84f9ae7521897 (diff)
Adding default options
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r--ext/bg/js/options.js8
1 files 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) {