Fix filesharing after code splitting.

master
Håvar Aambø Fosstveit 2019-11-04 14:43:14 +01:00
parent 673c3f989e
commit 4b0c17c698
1 changed files with 9 additions and 7 deletions

View File

@ -144,13 +144,7 @@ export default class RoomClient
this._doneJoining = false; this._doneJoining = false;
// Our WebTorrent client // Our WebTorrent client
this._webTorrent = this._torrentSupport && new WebTorrent({ this._webTorrent = null;
tracker : {
rtcConfig : {
iceServers : ROOM_OPTIONS.turnServers
}
}
});
// Max spotlights // Max spotlights
if (device.bowser.ios || device.bowser.mobile || device.bowser.android) if (device.bowser.ios || device.bowser.mobile || device.bowser.android)
@ -1203,6 +1197,14 @@ export default class RoomClient
this._torrentSupport = WebTorrent.WEBRTC_SUPPORT; this._torrentSupport = WebTorrent.WEBRTC_SUPPORT;
this._webTorrent = this._torrentSupport && new WebTorrent({
tracker : {
rtcConfig : {
iceServers : ROOM_OPTIONS.turnServers
}
}
});
this._screenSharing = ScreenShare.create(this._device); this._screenSharing = ScreenShare.create(this._device);
this._signalingSocket = io(this._signalingUrl); this._signalingSocket = io(this._signalingUrl);