Skip to content

Commit

Permalink
Merge pull request #882 from unoplatform/dev/mazi/meta-apple
Browse files Browse the repository at this point in the history
fix: Adjust deprecated meta tag
  • Loading branch information
jeromelaban authored Aug 26, 2024
2 parents 6a034bd + c2d16a0 commit ffd3ad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Uno.Wasm.Bootstrap/ShellTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2355,8 +2355,8 @@ private void GeneratePWAContent(StringBuilder extraBuilder)

extraBuilder.AppendLine($"<link rel=\"manifest\" href=\"$(WEB_MANIFEST)\" />");

// See https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html
extraBuilder.AppendLine($"<meta name=\"apple-mobile-web-app-capable\" content=\"yes\">");
// See https://stackoverflow.com/a/27951414
extraBuilder.AppendLine($"<meta name=\"mobile-web-app-capable\" content=\"yes\">");

if (manifestDocument["icons"] is JArray array
&& array.Where(v => v["sizes"]?.Value<string>() == "1024x1024").FirstOrDefault() is JToken img)
Expand Down

0 comments on commit ffd3ad3

Please sign in to comment.