Skip to content

Commit f820bae

Browse files
author
dimaspirit
committed
fix for node (check webrtc)
1 parent cd52925 commit f820bae

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

js/qbMain.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ QuickBlox.prototype = {
4444
} else {
4545
this.webrtc = false;
4646
}
47+
} else {
48+
this.webrtc = false;
4749
}
4850

4951
this.auth = new Auth(this.service);
5052
this.users = new Users(this.service);
51-
this.chat = new Chat(this.service, this.webrtc.signalingProcessor || null, conn || null);
53+
this.chat = new Chat(this.service, this.webrtc ? this.webrtc.signalingProcessor : null, conn || null);
5254
this.content = new Content(this.service);
5355
this.location = new Location(this.service);
5456
this.pushnotifications = new PushNotifications(this.service);

0 commit comments

Comments
 (0)