From 4a4ba24b0ced047270ba5e5d790a024334a3650a Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Fri, 3 Jun 2016 10:04:42 +0200 Subject: [PATCH] Moved room type name to variable. --- static/js/mediastream/webrtc.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/mediastream/webrtc.js b/static/js/mediastream/webrtc.js index e5c6dd61..0a8505e9 100644 --- a/static/js/mediastream/webrtc.js +++ b/static/js/mediastream/webrtc.js @@ -42,6 +42,8 @@ function($, _, PeerCall, PeerConference, PeerXfer, PeerScreenshare, UserMedia, u console.log("This seems to be Android"); } + var roomTypeConference = "Conference"; + var InternalPC = function(call) { this.currentcall = call; this.isinternal = true; @@ -171,7 +173,7 @@ function($, _, PeerCall, PeerConference, PeerXfer, PeerScreenshare, UserMedia, u }; WebRTC.prototype.isConferenceRoom = function() { - return this.currentroom && this.currentroom.Type === "Conference"; + return this.currentroom && this.currentroom.Type === roomTypeConference; }; WebRTC.prototype.processReceived = function(event, to, data, type, to2, from) {