Skip to content

Commit

Permalink
Release build 6.10.0 [ci release]
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanKingston authored and github-actions[bot] committed Aug 23, 2024
1 parent 47cb478 commit f25bfc9
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
5 changes: 4 additions & 1 deletion Sources/ContentScopeScripts/dist/contentScope.js
Original file line number Diff line number Diff line change
Expand Up @@ -3025,7 +3025,10 @@
forcedValues["user-scalable"] = "yes";
forcedValues["maximum-scale"] = 10;
}
if (!viewportTag || this.desktopModeEnabled) {
if (this.getFeatureSettingEnabled("plainTextViewPort") && document.contentType === "text/plain") {
forcedValues.width = "device-width";
forcedValues["initial-scale"] = 1;
} else if (!viewportTag || this.desktopModeEnabled) {
forcedValues.width = screen.width >= 1280 ? 1280 : 980;
forcedValues["initial-scale"] = (screen.width / forcedValues.width).toFixed(3);
forcedValues["user-scalable"] = "yes";
Expand Down
7 changes: 6 additions & 1 deletion build/android/contentScope.js
Original file line number Diff line number Diff line change
Expand Up @@ -8416,7 +8416,12 @@
forcedValues['maximum-scale'] = 10;
}

if (!viewportTag || this.desktopModeEnabled) {
if (this.getFeatureSettingEnabled('plainTextViewPort') && document.contentType === 'text/plain') {
// text should span the full screen width
forcedValues.width = 'device-width';
// keep default scale to prevent text from appearing too small
forcedValues['initial-scale'] = 1;
} else if (!viewportTag || this.desktopModeEnabled) {
// force wide viewport width
forcedValues.width = screen.width >= 1280 ? 1280 : 980;
forcedValues['initial-scale'] = (screen.width / forcedValues.width).toFixed(3);
Expand Down
7 changes: 6 additions & 1 deletion build/contentScope.js
Original file line number Diff line number Diff line change
Expand Up @@ -14792,7 +14792,12 @@
forcedValues['maximum-scale'] = 10;
}

if (!viewportTag || this.desktopModeEnabled) {
if (this.getFeatureSettingEnabled('plainTextViewPort') && document.contentType === 'text/plain') {
// text should span the full screen width
forcedValues.width = 'device-width';
// keep default scale to prevent text from appearing too small
forcedValues['initial-scale'] = 1;
} else if (!viewportTag || this.desktopModeEnabled) {
// force wide viewport width
forcedValues.width = screen.width >= 1280 ? 1280 : 980;
forcedValues['initial-scale'] = (screen.width / forcedValues.width).toFixed(3);
Expand Down
7 changes: 6 additions & 1 deletion build/integration/contentScope.js
Original file line number Diff line number Diff line change
Expand Up @@ -14792,7 +14792,12 @@
forcedValues['maximum-scale'] = 10;
}

if (!viewportTag || this.desktopModeEnabled) {
if (this.getFeatureSettingEnabled('plainTextViewPort') && document.contentType === 'text/plain') {
// text should span the full screen width
forcedValues.width = 'device-width';
// keep default scale to prevent text from appearing too small
forcedValues['initial-scale'] = 1;
} else if (!viewportTag || this.desktopModeEnabled) {
// force wide viewport width
forcedValues.width = screen.width >= 1280 ? 1280 : 980;
forcedValues['initial-scale'] = (screen.width / forcedValues.width).toFixed(3);
Expand Down
7 changes: 6 additions & 1 deletion src/features/web-compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,12 @@ export class WebCompat extends ContentFeature {
forcedValues['maximum-scale'] = 10
}

if (!viewportTag || this.desktopModeEnabled) {
if (this.getFeatureSettingEnabled('plainTextViewPort') && document.contentType === 'text/plain') {
// text should span the full screen width
forcedValues.width = 'device-width'
// keep default scale to prevent text from appearing too small
forcedValues['initial-scale'] = 1
} else if (!viewportTag || this.desktopModeEnabled) {
// force wide viewport width
forcedValues.width = screen.width >= 1280 ? 1280 : 980
forcedValues['initial-scale'] = (screen.width / forcedValues.width).toFixed(3)
Expand Down

0 comments on commit f25bfc9

Please sign in to comment.