app/assets/javascripts/cookies_eu.js in cookies_eu-1.7.7 vs app/assets/javascripts/cookies_eu.js in cookies_eu-1.7.8
- old
+ new
@@ -27,9 +27,11 @@
var isSecure = location.protocol === 'https:';
Cookies.set('cookie_eu_consented', true, { path: '/', expires: 365, secure: isSecure });
var container = document.querySelector('.js-cookies-eu');
container.parentNode.removeChild(container);
+
+ document.dispatchEvent(new CustomEvent('cookies-eu-acknowledged'));
}
};
(function() {
function eventName(fallback) {