diff --git a/code.js b/code.js index 35ca851..663c50b 100644 --- a/code.js +++ b/code.js @@ -42,7 +42,7 @@ if(getCookie("saveChoiceAllowed") !== "true") { } } allowHSCookies = getCookie("cookiesAllowed"); -if(allowHSCookies){ +if(allowHSCookies && getCookie("highScore") !== ""){ highScore = getCookie("highScore"); } document.getElementById("highScore").innerText = "Highscore: " + highScore;