From e68078193d057e12b9a0b0c12be5ce868a365a5f Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Tue, 1 Sep 2015 11:06:04 +0200 Subject: [PATCH] Make room title updates not crash the client. --- js/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/client.js b/js/client.js index 5099c5814..1ce16b2a0 100644 --- a/js/client.js +++ b/js/client.js @@ -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!";