Browse Source

Merge pull request #400 from nstCactus/patch-2

🐛 Dispatch an event when a service is accepted
Amauri CHAMPEAUX 5 years ago
parent
commit
334920b91b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tarteaucitron.js

+ 1 - 0
tarteaucitron.js

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