Merge pull request #685 from tsareg/fix_type_error_when_enabling_permissions_for_devices
Fix TypeError when one of audioTracks or videoTracks was undefined
This commit is contained in:
commit
9dcb717a51
|
@ -594,7 +594,8 @@ export default {
|
|||
videoTrackCreationError);
|
||||
}
|
||||
|
||||
return audioTracks.concat(videoTracks);
|
||||
return (audioTracks || [])
|
||||
.concat(videoTracks || []);
|
||||
});
|
||||
} else {
|
||||
promise = createAudioTrack();
|
||||
|
|
Loading…
Reference in New Issue