Browse Source

Moved room type name to variable.

pull/284/head
Joachim Bauch 9 years ago
parent
commit
4a4ba24b0c
  1. 4
      static/js/mediastream/webrtc.js

4
static/js/mediastream/webrtc.js

@ -42,6 +42,8 @@ function($, _, PeerCall, PeerConference, PeerXfer, PeerScreenshare, UserMedia, u
console.log("This seems to be Android"); console.log("This seems to be Android");
} }
var roomTypeConference = "Conference";
var InternalPC = function(call) { var InternalPC = function(call) {
this.currentcall = call; this.currentcall = call;
this.isinternal = true; this.isinternal = true;
@ -171,7 +173,7 @@ function($, _, PeerCall, PeerConference, PeerXfer, PeerScreenshare, UserMedia, u
}; };
WebRTC.prototype.isConferenceRoom = function() { 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) { WebRTC.prototype.processReceived = function(event, to, data, type, to2, from) {

Loading…
Cancel
Save