Skip to content

Commit

Permalink
added error handle to ownername checking
Browse files Browse the repository at this point in the history
  • Loading branch information
harrymkt committed Apr 2, 2024
1 parent 1e3ab14 commit 7b0a1a9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,9 @@ dt += "Good afternoon "+get_storage("visitname","visiter")+", thank you for visi
else
dt += "Good evening "+get_storage("visitname","visiter")+", have a nice day!";
document.getElementById("greetings").textContent = dt;
document.getElementById("ownername").textContent=ownername;
}
var ownernameElement = document.getElementById("ownername");
if (ownernameElement)
{
ownernameElement.textContent = ownername;
}
}//end of nav

0 comments on commit 7b0a1a9

Please sign in to comment.