{ const init = () =>{ document.cookie.split('; ').forEach(itCookie = cookie =>{ // TODO (Arnhoudt) Fix shitty way of doing things if(cookie.split("=")[0] == "theme" && cookie.split("=")[1] == "darkmode"){ document.querySelector(".toggleDarkmode").innerHTML = "Enter lightmode" document.querySelector(".toggleDarkmode").id = "lightmode"; } if(cookie.split("=")[0] == "theme" && cookie.split("=")[1] == "customTheme"){ document.querySelector(".background").innerHTML = '