X-Git-Url: https://git-public.kairo.at/?p=authserver.git;a=blobdiff_plain;f=authsystem.js;h=2e21b0f99003529365ed5ac36be482c8f1a840da;hp=8fd97566360ccce5fe1a5f0bdc179020ce9506ad;hb=409b55f4dbb4267e83e8ae2fda56f243ab8be250;hpb=d26d08a171f0f65437bc7ea416239cfb31c4db27 diff --git a/authsystem.js b/authsystem.js index 8fd9756..2e21b0f 100644 --- a/authsystem.js +++ b/authsystem.js @@ -3,7 +3,10 @@ * You can obtain one at http://mozilla.org/MPL/2.0/. */ window.onload = function() { - document.getElementById("jswarning").classList.add("hidden"); + var jsWarning = document.getElementById("jswarning"); + if (jsWarning) { + document.getElementById("jswarning").classList.add("hidden"); + } var loginForm = document.getElementById("loginform"); if (loginForm) { loginForm.classList.remove("hidden");