mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 23:32:02 -05:00
Merge pull request #458 from xfix/fix-room-titling
Make room title updates not crash the client.
This commit is contained in:
@@ -1536,7 +1536,7 @@
|
||||
}
|
||||
},
|
||||
roomTitleChanged: function (room) {
|
||||
if (room.id === this.fragment) updateTitle(room);
|
||||
if (room.id === this.fragment) this.updateTitle(room);
|
||||
},
|
||||
updateTitle: function (room) {
|
||||
document.title = room.title ? room.title + " - Showdown!" : "Showdown!";
|
||||
|
||||
Reference in New Issue
Block a user