Skip to content

Commit

Permalink
[gui] Only show the user in grey if it's "unknown".
Browse files Browse the repository at this point in the history
Signed-off-by: Flynn <[email protected]>
  • Loading branch information
kflynn committed May 2, 2024
1 parent bf810aa commit acf788e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion assets/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,13 @@ <H1>Faces</H1>
}

start() {
this.userDiv.innerHTML = `<span style="color:${Cell.colors.grey}">User: ${this.user}</span>`
let color = "#000000";

if (this.user == "unknown") {
color = Cell.colors.grey;
}

this.userDiv.innerHTML = `<span style="color:${color}">User: ${this.user}</span>`
}

// stop() {
Expand Down

0 comments on commit acf788e

Please sign in to comment.