Skip to content

Commit 17c4ac9

Browse files
Explain the change more and disable it by default
1 parent 8e1165b commit 17c4ac9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

injected/src/features/web-compat.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)