Skip to content

Commit

Permalink
Display character name in browser title
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Dec 4, 2023
1 parent 53bdefa commit 7d0af4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions srcjs/stendhal/util/SessionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ export class SessionManager {
*/
setCharName(charname: string) {
this.charname = charname;
// display character name in browser title/tab
document.title = "Stendhal - " + this.charname;
}

/**
Expand Down

0 comments on commit 7d0af4a

Please sign in to comment.