Fixed cookie dinkie

master
Yuri van Midden 5 years ago
parent ab344a9e5c
commit 048c4afcfc
Signed by: yuri
GPG Key ID: B1E365DD233EF90A
  1. 4
      src/index.html

@ -49,7 +49,7 @@
function toProductionSite() {
var name="site-preference";
var value=0;
var value="0";
var days=30;
var expires = "";
if (days) {
@ -57,7 +57,7 @@
date.setTime(date.getTime() + (days*24*60*60*1000));
expires = "; expires=" + date.toUTCString();
}
document.cookie = name + "=" + (value || "") + expires + "; domain=.harambee.utwente.nl path=/";
document.cookie = name + "=" + (value || "") + expires + "; domain=.harambee.utwente.nl; path=/";
window.location.href = "https://harambee.utwente.nl";
};

Loading…
Cancel
Save