File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 795795 device . label = 'HTTPs is required to get label of this ' + device . kind + ' device.' ;
796796 }
797797 }
798- } else {
799- // Firefox on Android still returns empty label
800- if ( device . kind === 'videoinput' && ! isWebsiteHasWebcamPermissions ) {
801- isWebsiteHasWebcamPermissions = true ;
802- }
803-
804- if ( device . kind === 'audioinput' && ! isWebsiteHasMicrophonePermissions ) {
805- isWebsiteHasMicrophonePermissions = true ;
806- }
807798 }
808799
809800 if ( device . kind === 'audioinput' ) {
810801 hasMicrophone = true ;
802+ isWebsiteHasMicrophonePermissions = true ;
811803
812804 if ( audioInputDevices . indexOf ( device ) === - 1 ) {
813805 audioInputDevices . push ( device ) ;
824816
825817 if ( device . kind === 'videoinput' ) {
826818 hasWebcam = true ;
819+ isWebsiteHasWebcamPermissions = true ;
827820
828821 if ( videoInputDevices . indexOf ( device ) === - 1 ) {
829822 videoInputDevices . push ( device ) ;
You can’t perform that action at this time.
0 commit comments