Removes undefined service
This commit is contained in:
parent
c3dd222c68
commit
3f641e3ca3
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