From df4adf747b81228ee9cf4924eaa0d5e7342228e8 Mon Sep 17 00:00:00 2001
From: Wolfgang Knopki <wolfgang.knopki@hft-stuttgart.de>
Date: Tue, 22 Oct 2019 13:22:09 +0200
Subject: [PATCH] test dynamic header

---
 js/headfoot.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/headfoot.js b/js/headfoot.js
index fb41274..d3b4c84 100755
--- a/js/headfoot.js
+++ b/js/headfoot.js
@@ -10,8 +10,8 @@ function prependChild(parent,child){
     parent.insertBefore(child, parent.childNodes[0]);
 }
 
-function userAuthenticated(){
     console.log(document.getElementById('loginswitch').getAttribute('authenticated'));
+function userAuthenticated(){
     let params = new URLSearchParams(window.location.search);
     if(params.get('isAuthenticatedUser')){
         return true;
-- 
GitLab