Commit 909224be authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

user output debugging

parent 525483de
Pipeline #365 passed with stage
in 4 seconds
Showing with 2 additions and 2 deletions
+2 -2
...@@ -129,12 +129,12 @@ function head(){ ...@@ -129,12 +129,12 @@ function head(){
headlink.innerHTML="Account"; headlink.innerHTML="Account";
headlink.href="/account/"; headlink.href="/account/";
} }
if(typeof user !== 'undefined'){ if(typeof user !== 'undefined' && user){
console.log(user) console.log(user)
}else{ }else{
console.log("user not defined") console.log("user not defined")
} }
if(typeof user !== 'undefined'){ //user has priority if(typeof user !== 'undefined' && user){ //user has priority
headlink.innerHTML="Logout"; headlink.innerHTML="Logout";
headlink.href="/account/logout"; headlink.href="/account/logout";
} }
......
Supports Markdown
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