make login on authorize actually work and redirect back to the authorize form after...
[authserver.git] / authsystem.js
index 8fd97566360ccce5fe1a5f0bdc179020ce9506ad..2e21b0f99003529365ed5ac36be482c8f1a840da 100644 (file)
@@ -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");