app/assets/javascripts/cookies_eu.js in cookies_eu-1.7.4 vs app/assets/javascripts/cookies_eu.js in cookies_eu-1.7.5
- old
+ new
@@ -22,10 +22,11 @@
target.addEventListener('click', this.setCookie, false);
}
},
setCookie: function() {
- Cookies.set('cookie_eu_consented', true, { path: '/', expires: 365 });
+ 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);
}
};