app/assets/javascripts/cookies_eu.js in cookies_eu-1.5.0 vs app/assets/javascripts/cookies_eu.js in cookies_eu-1.5.1
- old
+ new
@@ -22,10 +22,11 @@
},
setCookie: function() {
Cookies.set('cookie_eu_consented', true, { path: '/', expires: 365 });
- document.querySelector('.js-cookies-eu').remove();
+ var container = document.querySelector('.js-cookies-eu');
+ container.parentNode.removeChild(container);
}
}
cookiesEu.init();