Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Miroslav Kratochvil
jekyll-theme-lcsb-default
Commits
067c17d5
Verified
Commit
067c17d5
authored
Apr 20, 2020
by
Laurent Heirendt
✈
Browse files
remove MATOMO_SESSID cookie
parent
1091d3ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
assets/js/gdpr.js
View file @
067c17d5
...
...
@@ -67,8 +67,7 @@ function clearCookies() {
var
cookies
=
document
.
cookie
.
split
(
'
;
'
);
for
(
var
i
in
cookies
)
{
var
name
=
cookies
[
i
].
split
(
'
=
'
)[
0
];
if
(
name
.
startsWith
(
'
_pk_
'
))
{
console
.
log
(
name
);
if
(
name
.
startsWith
(
'
_pk_
'
)
||
name
.
startsWith
(
'
MATOMO_SESSID
'
))
{
document
.
cookie
=
name
+
'
=;
'
+
commonSuffix
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment