File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -142,14 +142,16 @@ export class WebCompat extends ContentFeature {
142142 this . deviceEnumerationFix ( ) ;
143143 }
144144 // Used by Android in the non adsjs version
145- if ( this . getFeatureSettingEnabled ( 'viewportWidthLegacy' ) ) {
145+ // This has to be enabled in the config for the injectName='android' now.
146+ if ( this . getFeatureSettingEnabled ( 'viewportWidthLegacy' , 'disabled' ) ) {
146147 this . viewportWidthFix ( ) ;
147148 }
148149 }
149150
150151 /**
151152 * Handle user preference updates when merged during initialization.
152153 * Re-applies viewport fixes if viewport configuration has changed.
154+ * Used in the injectName='android-adsjs' instead of 'viewportWidthLegacy' from init.
153155 * @param {object } _updatedConfig - The configuration with merged user preferences
154156 */
155157 onUserPreferencesMerged ( _updatedConfig ) {
You can’t perform that action at this time.
0 commit comments