UNPKG
cookieguard
Version:
latest (0.3.1)
0.3.1
0.3.0
0.2.1
0.2.0
0.1.1
0.1.0
0.0.0
Handle third party services in compliance with the GDPR
cookieguard.js.org
tobiasthaden/cookieguard
cookieguard
/
src
/
services
/
Service.js
17 lines
(13 loc)
•
270 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export
default
class
Service
{
constructor
(
domain, path
) {
this
.
path
= path ||
'/'
;
this
.
domain
= domain ||
window
.
location
.
hostname
;
this
.
cookie
= { domain, path }; }
enable
(
) {
//
}
disable
(
) {
//
} }