mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #3692 from troggy/fix-default-config-polution
Fix: configService.set() pollutes default config
This commit is contained in:
commit
75c04683bd
|
@ -87,7 +87,7 @@ angular.module('copayApp.services').factory('configService', function(storageSer
|
|||
};
|
||||
|
||||
root.set = function(newOpts, cb) {
|
||||
var config = defaultConfig;
|
||||
var config = lodash.clone(defaultConfig);
|
||||
storageService.getConfig(function(err, oldOpts) {
|
||||
if (lodash.isString(oldOpts)) {
|
||||
oldOpts = JSON.parse(oldOpts);
|
||||
|
|
Loading…
Reference in New Issue