forked from Ailur/burgernotes-server
Fix function
This commit is contained in:
parent
db540c4792
commit
412bd0fdd9
|
@ -579,7 +579,7 @@ function isFirstTimeVisitor() {
|
||||||
} else {
|
} else {
|
||||||
var expirationDate = new Date();
|
var expirationDate = new Date();
|
||||||
expirationDate.setFullYear(expirationDate.getFullYear() + 1);
|
expirationDate.setFullYear(expirationDate.getFullYear() + 1);
|
||||||
document.cookie = "visited=true; expires=" + expirationDate.toUTCStrin>
|
document.cookie = "visited=true; expires=" + expirationDate.toUTCString() + "; path=/; SameSite=strict";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue