aboutsummaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-01-14 00:14:08 +0000
committerGitHub <noreply@github.com>2018-01-14 00:14:08 +0000
commitd4450b3e988211d765858f67c5c7d70ae12c2591 (patch)
tree3503c7ee0fe0d7fae40ee1dc9ce59b2b2f9cfffb /src/shared
parentbe1f8e4d717e326863416d085a0d6e136d9822f7 (diff)
parent930cd14ac1b5d25bad28084bfa953ac4a13080d1 (diff)
Merge pull request #309 from ueokande/default-properties
Default properties
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/settings/default.js4
-rw-r--r--src/shared/settings/storage.js4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/shared/settings/default.js b/src/shared/settings/default.js
index 0c3f0d9..bcd7731 100644
--- a/src/shared/settings/default.js
+++ b/src/shared/settings/default.js
@@ -60,9 +60,9 @@ export default {
"duckduckgo": "https://duckduckgo.com/?q={}",
"twitter": "https://twitter.com/search?q={}",
"wikipedia": "https://en.wikipedia.org/w/index.php?search={}"
- },
- "properties": {
}
+ },
+ "properties": {
}
}`,
};
diff --git a/src/shared/settings/storage.js b/src/shared/settings/storage.js
index 1edb441..25ebfcd 100644
--- a/src/shared/settings/storage.js
+++ b/src/shared/settings/storage.js
@@ -18,7 +18,9 @@ const loadValue = () => {
} else if (settings.source === 'form') {
value = settingsValues.valueFromForm(settings.form);
}
- return value;
+ return Object.assign({},
+ settingsValues.valueFromJson(DefaultSettings.json),
+ value);
});
};