Dispatch an event when a service is added.

This commit is contained in:
nstCactus 2020-01-29 19:57:06 +01:00 committed by Yohann Bianchi
parent da7272f60d
commit e58a6ab8d2
1 changed files with 21 additions and 20 deletions

View File

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