FS-8805: sanity check on array

This commit is contained in:
Davide Colombo 2016-02-03 17:36:14 +01:00
parent bbca264940
commit 70b142410b
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
if (!videoFlag) storage.data.selectedVideo = data.videoDevices[0].id;
if (!shareFlag) storage.data.selectedShare = data.shareDevices[0].id;
if (!audioFlag) storage.data.selectedAudio = data.audioDevices[0].id;
if (!speakerFlag && data.speakerDevices > 0) storage.data.selectedSpeaker = data.speakerDevices[0].id;
if (!speakerFlag && data.speakerDevices.length > 0) storage.data.selectedSpeaker = data.speakerDevices[0].id;
// This means that we cannot use video!
if (data.videoDevices.length === 0) {