Merge pull request #3692 from troggy/fix-default-config-polution

Fix: configService.set() pollutes default config
This commit is contained in:
Gustavo Maximiliano Cortez 2016-01-05 17:38:12 -03:00
commit 75c04683bd
1 changed files with 1 additions and 1 deletions

View File

@ -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);