diff options
Diffstat (limited to 'src/shared/settings/storage.js')
-rw-r--r-- | src/shared/settings/storage.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/shared/settings/storage.js b/src/shared/settings/storage.js index 87843ed..5dce3b0 100644 --- a/src/shared/settings/storage.js +++ b/src/shared/settings/storage.js @@ -6,7 +6,7 @@ const loadRaw = async() => { if (!settings) { return DefaultSettings; } - return Object.assign({}, DefaultSettings, settings); + return { ...DefaultSettings, ...settings }; }; const loadValue = async() => { @@ -20,9 +20,7 @@ const loadValue = async() => { if (!value.properties) { value.properties = {}; } - return Object.assign({}, - settingsValues.valueFromJson(DefaultSettings.json), - value); + return { ...settingsValues.valueFromJson(DefaultSettings.json), ...value }; }; const save = (settings) => { |