diff --git a/website/issues.html b/website/issues.html index 89f0555..31e10f0 100644 --- a/website/issues.html +++ b/website/issues.html @@ -7,7 +7,7 @@ - +
diff --git a/website/javascript/cookies.js b/website/javascript/cookies.js index 9bc7709..e525b7f 100644 --- a/website/javascript/cookies.js +++ b/website/javascript/cookies.js @@ -36,15 +36,22 @@ function saveCookies() { function insertAPIKeyFromCookie() { - getCookies(); - key = cookies["apikey"]; - if (key != null && key != undefined) { - document.getElementById("apikey").value = key; - checkAPIkey(); + element = document.getElementById("apikey") + if (element != null && element != undefined) { + getCookies(); + key = cookies["apikey"]; + if (key != null && key != undefined) { + element.value = key; + checkAPIkey(); + } } + } +window.addEventListener("load",insertAPIKeyFromCookie); + + function saveAPIkey() { key = APIkey(); setCookie("apikey",key); diff --git a/website/manual.html b/website/manual.html index a064f38..a6a5df3 100644 --- a/website/manual.html +++ b/website/manual.html @@ -154,7 +154,7 @@ - + diff --git a/website/setup.html b/website/setup.html index c65fa0a..f7e7ccf 100644 --- a/website/setup.html +++ b/website/setup.html @@ -58,7 +58,7 @@ - +