Fix TypeError when one of audioTracks or videoTracks was undefined

pull/685/head
tsareg 9 years ago
parent 61fa2d8ed1
commit f72e3bf552
  1. 3
      conference.js

@ -594,7 +594,8 @@ export default {
videoTrackCreationError);
}
return audioTracks.concat(videoTracks);
return (audioTracks || [])
.concat(videoTracks || []);
});
} else {
promise = createAudioTrack();

Loading…
Cancel
Save