Merge pull request #401 from nstCactus/patch-3

 Dispatch an event when a service is added.
This commit is contained in:
Amauri CHAMPEAUX 2020-02-05 11:32:07 +01:00 committed by GitHub
commit 4d870d731d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 20 deletions

View File

@ -641,6 +641,7 @@ var tarteaucitron = {
}
tarteaucitron.cookie.checkCount(service.key);
tarteaucitron.sendEvent(service.key + '_added')
},
"sendEvent" : function(event_key) {
if(event_key !== undefined) {