X-Git-Url: https://git-public.kairo.at/?a=blobdiff_plain;f=authsystem.js;h=2e21b0f99003529365ed5ac36be482c8f1a840da;hb=80ca2a2f90bd1462e79678e28370b187ae851e59;hp=8fd97566360ccce5fe1a5f0bdc179020ce9506ad;hpb=d26d08a171f0f65437bc7ea416239cfb31c4db27;p=authserver.git 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");