Forums
Home / Plugin: Age Gate / JS Event not firing anymore?
(@amihaidany)
4 years, 3 months ago
Hello,
Usually got events on JS with this code:
jQuery(document).on('agegateshown',function(){ console.log('age gate shown'); })
However, it’s stopped working. Where are the custom events are being fired?
Thank you!
(@philsbury)
Hi @amihaidany,
Can you try hanging it off window instead?
window
jQuery(window).on('agegateshown',function(){ console.log('age gate shown'); })
Thanks Phil