Fix: configService.set() pollutes default config
This commit is contained in:
parent
151cb7cf7a
commit
051d4c0f74
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ angular.module('copayApp.services').factory('configService', function(storageSer
|
||||||
};
|
};
|
||||||
|
|
||||||
root.set = function(newOpts, cb) {
|
root.set = function(newOpts, cb) {
|
||||||
var config = defaultConfig;
|
var config = lodash.clone(defaultConfig);
|
||||||
storageService.getConfig(function(err, oldOpts) {
|
storageService.getConfig(function(err, oldOpts) {
|
||||||
if (lodash.isString(oldOpts)) {
|
if (lodash.isString(oldOpts)) {
|
||||||
oldOpts = JSON.parse(oldOpts);
|
oldOpts = JSON.parse(oldOpts);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue