cookieguard
Version:
Handle third party services in compliance with the GDPR
14 lines (12 loc) • 339 B
JavaScript
export const expireCookie = function(name, domain, path) {
document.cookie =
name +
'=' +
(path ? ';path=' + path : '') +
(domain ? ';domain=' + domain : '') +
';expires=Thu, 01 Jan 1970 00:00:01 GMT';
};
export const tap = function(value, callback) {
callback(value);
return value;
};