🐛 Dispatch an event when a service is accepted

PR #363 introduced an event to detect when a service is accepted.
This is only dispatched when the page is loaded with the service
already accepted.

This commit ensures its also dispatched when the user click the
Allow button in the service engagement placeholder.
This commit is contained in:
nstCactus 2020-01-29 19:13:23 +01:00
parent da7272f60d
commit f5df8620cc
1 changed files with 1 additions and 0 deletions

View File

@ -748,6 +748,7 @@ var tarteaucitron = {
tarteaucitron.pro('!' + key + '=engage');
tarteaucitron.launch[key] = true;
tarteaucitron.sendEvent(key + '_loaded');
tarteaucitron.services[key].js();
}
}