aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/options.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-05 22:18:55 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-05 22:18:55 -0700
commit721a4dc661fe85768ebdb57b7d4caa5f9c485372 (patch)
tree74224c9138e91f34d720f3e9815cae1da291affe /ext/bg/js/options.js
parent8774c783f6cb3e72e837ad335f78df0ca08f24e5 (diff)
WIP
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r--ext/bg/js/options.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index 1db3be5e..4c1135d2 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -23,6 +23,9 @@ function sanitizeOptions(options) {
};
for (const key in defaults) {
+ if (!options.hasOwnProperty(key)) {
+ options[key] = defaults[key];
+ }
options[key] = options[key] || defaults[key];
}