fix reset config

This commit is contained in:
Matias Alejo Garcia 2014-12-12 17:06:17 -03:00
commit 7d608c254f

View file

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('copayApp.services').factory('configService', function($timeout, localstorageService, gettextCatalog) { angular.module('copayApp.services').factory('configService', function($timeout, localstorageService, gettextCatalog, defaults) {
var root = {}; var root = {};
root.set = function(opts, cb) { root.set = function(opts, cb) {
@ -31,7 +31,7 @@ angular.module('copayApp.services').factory('configService', function($timeout,
}; };
root.reset = function(cb) { root.reset = function(cb) {
config = copay.defaultConfig; config = defauls;
localstorageService.removeItem('config', cb); localstorageService.removeItem('config', cb);
}; };