@@ -130,9 +130,9 @@ export class WebCompat extends ContentFeature {
130
130
if ( this . getFeatureSettingEnabled ( 'disableDeviceEnumeration' ) || this . getFeatureSettingEnabled ( 'disableDeviceEnumerationFrames' ) ) {
131
131
this . preventDeviceEnumeration ( ) ;
132
132
}
133
- // if (this.getFeatureSettingEnabled('deviceEnumeration')) {
133
+ if ( this . getFeatureSettingEnabled ( 'deviceEnumeration' ) ) {
134
134
this . deviceEnumerationFix ( ) ;
135
- // }
135
+ }
136
136
}
137
137
138
138
/** Shim Web Share API in Android WebView */
@@ -797,27 +797,27 @@ export class WebCompat extends ContentFeature {
797
797
// Create a simple object that looks like MediaDeviceInfo
798
798
const deviceInfo = {
799
799
deviceId : 'default' ,
800
- kind : kind ,
800
+ kind,
801
801
label : '' ,
802
802
groupId : 'default-group' ,
803
803
toJSON ( ) {
804
804
return {
805
805
deviceId : this . deviceId ,
806
806
kind : this . kind ,
807
807
label : this . label ,
808
- groupId : this . groupId
808
+ groupId : this . groupId ,
809
809
} ;
810
- }
810
+ } ,
811
811
} ;
812
-
812
+
813
813
// Make properties read-only to match MediaDeviceInfo behavior
814
814
Object . defineProperties ( deviceInfo , {
815
815
deviceId : { writable : false , configurable : false } ,
816
816
kind : { writable : false , configurable : false } ,
817
817
label : { writable : false , configurable : false } ,
818
- groupId : { writable : false , configurable : false }
818
+ groupId : { writable : false , configurable : false } ,
819
819
} ) ;
820
-
820
+
821
821
// Set the prototype based on device type
822
822
if ( kind === 'videoinput' || kind === 'audioinput' ) {
823
823
// Input devices should inherit from InputDeviceInfo.prototype if available
@@ -830,7 +830,7 @@ export class WebCompat extends ContentFeature {
830
830
// Output devices inherit from MediaDeviceInfo.prototype
831
831
Object . setPrototypeOf ( deviceInfo , MediaDeviceInfo . prototype ) ;
832
832
}
833
-
833
+
834
834
return deviceInfo ;
835
835
}
836
836
0 commit comments