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