From 048c4afcfce9505f648e37b1115d7f1e83e4cd7a Mon Sep 17 00:00:00 2001 From: Yuri van Midden Date: Wed, 31 Jul 2019 15:11:45 +0200 Subject: [PATCH] Fixed cookie dinkie --- src/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.html b/src/index.html index 8686ac5..99efffa 100644 --- a/src/index.html +++ b/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"; };