You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Race condition: depending on the loading state of the page, initial scale may or may not be respected, so the page may look zoomed-in after applying this hack.
7915
7943
// Usually this is just an annoyance, but it may be a bigger issue if user-scalable=no is set, so we remove it too.
@@ -7920,10 +7948,7 @@
7920
7948
newContent = newContent.concat(`,${viewportContentParts[idx]}`); // reuse the original values, not the parsed ones
7921
7949
}
7922
7950
});
7923
-
viewportTag.setAttribute('content', newContent);
7924
-
if (!viewportTagExists) {
7925
-
document.head.appendChild(viewportTag);
7926
-
}
7951
+
this.forceViewportTag(viewportTag, newContent);
7927
7952
} else { // mobile mode with a viewport tag
7928
7953
// fix an edge case where WebView forces the wide viewport
// Race condition: depending on the loading state of the page, initial scale may or may not be respected, so the page may look zoomed-in after applying this hack.
14084
14112
// Usually this is just an annoyance, but it may be a bigger issue if user-scalable=no is set, so we remove it too.
@@ -14089,10 +14117,7 @@
14089
14117
newContent = newContent.concat(`,${viewportContentParts[idx]}`); // reuse the original values, not the parsed ones
14090
14118
}
14091
14119
});
14092
-
viewportTag.setAttribute('content', newContent);
14093
-
if (!viewportTagExists) {
14094
-
document.head.appendChild(viewportTag);
14095
-
}
14120
+
this.forceViewportTag(viewportTag, newContent);
14096
14121
} else { // mobile mode with a viewport tag
14097
14122
// fix an edge case where WebView forces the wide viewport
// Race condition: depending on the loading state of the page, initial scale may or may not be respected, so the page may look zoomed-in after applying this hack.
14084
14112
// Usually this is just an annoyance, but it may be a bigger issue if user-scalable=no is set, so we remove it too.
@@ -14089,10 +14117,7 @@
14089
14117
newContent = newContent.concat(`,${viewportContentParts[idx]}`); // reuse the original values, not the parsed ones
14090
14118
}
14091
14119
});
14092
-
viewportTag.setAttribute('content', newContent);
14093
-
if (!viewportTagExists) {
14094
-
document.head.appendChild(viewportTag);
14095
-
}
14120
+
this.forceViewportTag(viewportTag, newContent);
14096
14121
} else { // mobile mode with a viewport tag
14097
14122
// fix an edge case where WebView forces the wide viewport
0 commit comments