diff options
-rw-r--r-- | src/bg/Settings.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bg/Settings.js b/src/bg/Settings.js index c0af149..28f880e 100644 --- a/src/bg/Settings.js +++ b/src/bg/Settings.js @@ -134,7 +134,7 @@ var Settings = { async storage => (settings[storage] || // changed or... settings[storage] === null // ... needs reset to default ) && await ns.save(settings[storage] - ? Object.assign(ns[storage], settings[storage]) : ns[storage] = ns.defaults[storage]) + ? Object.assign(ns[storage], settings[storage]) : ns[storage] = Object.assign({}, ns.defaults[storage])) )); if (ns.local.debug !== oldDebug) { await include("/lib/log.js"); |