From f5df8620cc84034aaebdc8ed5d89aadd2f4b0ced Mon Sep 17 00:00:00 2001 From: nstCactus Date: Wed, 29 Jan 2020 19:13:23 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Dispatch=20an=20event=20when=20a?= =?UTF-8?q?=20service=20is=20accepted?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- tarteaucitron.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tarteaucitron.js b/tarteaucitron.js index d1547c6..affd853 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -748,6 +748,7 @@ var tarteaucitron = { tarteaucitron.pro('!' + key + '=engage'); tarteaucitron.launch[key] = true; + tarteaucitron.sendEvent(key + '_loaded'); tarteaucitron.services[key].js(); } }