Skip to content

Commit

Permalink
Make room title updates not crash the client.
Browse files Browse the repository at this point in the history
  • Loading branch information
KamilaBorowska committed Sep 1, 2015
1 parent ace15e8 commit e680781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!";
Expand Down

0 comments on commit e680781

Please sign in to comment.