Commit c7068034 authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

test dynamic header

parent ae547195
Pipeline #106 passed with stage
in 3 seconds
...@@ -11,11 +11,11 @@ function prependChild(parent,child){ ...@@ -11,11 +11,11 @@ function prependChild(parent,child){
} }
function userAuthenticated(){ function userAuthenticated(){
console.log(document.getElementById('loginswitch').href); console.log(document.getElementById('loginswitch').getAttribute('authenticated'));
let params = new URLSearchParams(window.location.search); let params = new URLSearchParams(window.location.search);
if(params.get('isAuthenticatedUser')){ if(params.get('isAuthenticatedUser')){
return true; return true;
}else if(document.getElementById('loginswitch').href == '1'){ }else if(document.getElementById('loginswitch').getAttribute('authenticated') == '1'){
return true; return true;
}else{ }else{
return false; return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment