From cb4df84d497a01f84b7fbdc1f73b3893a74a73c5 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Tue, 6 Sep 2016 10:36:44 +0100 Subject: [PATCH] Missing curly bracket --- src/ScalarMessaging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ScalarMessaging.js b/src/ScalarMessaging.js index 840bc3ee86..0d753f5356 100644 --- a/src/ScalarMessaging.js +++ b/src/ScalarMessaging.js @@ -228,7 +228,7 @@ var currentRoomId = null; // Listen for when a room is viewed dis.register(onAction); function onAction(payload) { - if (payload.action !== "view_room") + if (payload.action !== "view_room") { return; } currentRoomId = payload.room_id;