Add expiration date to "Do you consent to cookies?" cookie

Fixes #560
This commit is contained in:
Celestora 2022-05-30 11:25:50 +03:00
parent 1667713aa0
commit 0e398993b1

View file

@ -29,7 +29,9 @@
}
function agreeWithCookies() {
document.cookie = "cookiesAgreed=true";
let expires = (new Date(Date.now() + 40000000000)).toUTCString();
document.cookie = "cookiesAgreed=true;expires=" + expires + ";SameSite=Strict";
u(".cookies-popup").nodes[0].style.display = "none";
}
</script>
</script>