fix for chrome-based browsers and setting the client-side interstitial cookie

This commit is contained in:
Michael Quigley 2024-07-29 13:50:35 -04:00
parent 3283ad0cc0
commit 2cb3c1428a
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -108,8 +108,10 @@
<body>
<script>
function onClick() {
let e=new Date; e.setTime(e.getTime()+6048e5);
document.cookie = 'zrok_interstitial = 1; expires=${e}; path=/; SameSite=None';
const d = new Date();
d.setTime(d.getTime() + (7 * 24 * 60 * 60 * 1000));
let expires = "expires=" + d.toUTCString();
document.cookie = "zrok_interstitial=1;" + expires + ";path=/;SameSite=None';domain=" + window.location.hostname;
window.location.reload();
}
</script>