1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 01:36:55 +00:00

Remove minimum and maximum scale meta

This commit is contained in:
M66B 2020-09-29 09:27:07 +02:00
parent 9d1c798f0d
commit 5f4fe05e8f

View file

@ -1540,10 +1540,18 @@ public class HtmlHelper {
String[] param = content.split("[;,]"); String[] param = content.split("[;,]");
for (int i = 0; i < param.length; i++) { for (int i = 0; i < param.length; i++) {
String[] kv = param[i].split("="); String[] kv = param[i].split("=");
if (kv.length == 2 && if (kv.length == 2) {
"user-scalable".equals(kv[0].replace(" ", ""))) { switch (kv[0].replace(" ", "").toLowerCase()) {
kv[1] = "yes"; case "user-scalable":
param[i] = TextUtils.join("=", kv); kv[1] = "yes";
param[i] = TextUtils.join("=", kv);
break;
case "minimum-scale":
case "maximum-scale":
kv[0] = "disabled-scaling";
param[i] = TextUtils.join("=", kv);
break;
}
} }
} }
meta.attr("content", TextUtils.join(", ", param)); meta.attr("content", TextUtils.join(", ", param));