Merge pull request #5588 from cmgustavo/bug/empty-service-01
Removes undefined service
This commit is contained in:
commit
82d6803b83
1 changed files with 0 additions and 23 deletions
|
|
@ -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;
|
|
||||||
|
|
||||||
});
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue