Merge pull request #458 from xfix/fix-room-titling

Make room title updates not crash the client.
This commit is contained in:
Slayer95
2015-09-01 04:32:18 -05:00

View File

@@ -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!";