Browse Source

Merge pull request #685 from tsareg/fix_type_error_when_enabling_permissions_for_devices

Fix TypeError when one of audioTracks or videoTracks was undefined
j8
Любомир Маринов 9 years ago
parent
commit
9dcb717a51
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      conference.js

+ 2
- 1
conference.js View File

594
                                             videoTrackCreationError);
594
                                             videoTrackCreationError);
595
                                     }
595
                                     }
596
 
596
 
597
-                                    return audioTracks.concat(videoTracks);
597
+                                    return (audioTracks || [])
598
+                                        .concat(videoTracks || []);
598
                                 });
599
                                 });
599
                         } else {
600
                         } else {
600
                             promise = createAudioTrack();
601
                             promise = createAudioTrack();

Loading…
Cancel
Save