Fix filesharing after code splitting.
parent
673c3f989e
commit
4b0c17c698
|
|
@ -144,13 +144,7 @@ export default class RoomClient
|
|||
this._doneJoining = false;
|
||||
|
||||
// Our WebTorrent client
|
||||
this._webTorrent = this._torrentSupport && new WebTorrent({
|
||||
tracker : {
|
||||
rtcConfig : {
|
||||
iceServers : ROOM_OPTIONS.turnServers
|
||||
}
|
||||
}
|
||||
});
|
||||
this._webTorrent = null;
|
||||
|
||||
// Max spotlights
|
||||
if (device.bowser.ios || device.bowser.mobile || device.bowser.android)
|
||||
|
|
@ -1203,6 +1197,14 @@ export default class RoomClient
|
|||
|
||||
this._torrentSupport = WebTorrent.WEBRTC_SUPPORT;
|
||||
|
||||
this._webTorrent = this._torrentSupport && new WebTorrent({
|
||||
tracker : {
|
||||
rtcConfig : {
|
||||
iceServers : ROOM_OPTIONS.turnServers
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this._screenSharing = ScreenShare.create(this._device);
|
||||
|
||||
this._signalingSocket = io(this._signalingUrl);
|
||||
|
|
|
|||
Loading…
Reference in New Issue