Merge pull request #5588 from cmgustavo/bug/empty-service-01

Removes undefined service
This commit is contained in:
Matias Alejo Garcia 2017-02-08 13:54:54 -05:00 committed by GitHub
commit 82d6803b83

View file

@ -1,23 +0,0 @@
'use strict';
angular.module('copayApp.services').factory('', function(configService, $log) {
var root = {};
var services = [];
root.register = function(serviceInfo) {
$log.info('Adding homeIntegration entry:' + serviceInfo.name);
services.push(serviceInfo);
};
root.unregister = function(serviceName) {
services = lodash.filter(services, function(x) {
return x.name != serviceName
});
};
root.get = function() {
return services;
};
return root;
});