Skip to content
This repository has been archived by the owner on Mar 10, 2019. It is now read-only.

Commit

Permalink
Added Safari "PWA" meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Mar 16, 2018
1 parent f7a24e3 commit 46b9e7a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions WebContent/js/theming.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ class Theming {
themeColor.name = "theme-color";
themeColor.content = primary;
document.head.appendChild(themeColor);

const appleMobileCapable = document.createElement("meta");
appleMobileCapable.name = "apple-mobile-web-app-capable";
appleMobileCapable.content = "yes";
document.head.appendChild(appleMobileCapable);

const appleStatusBar = document.createElement("meta");
appleStatusBar.name = "apple-apple-mobile-web-app-status-bar-style-web-app-capable";
appleStatusBar.content = "black-translucent";
document.head.appendChild(appleStatusBar);
}
}

Expand Down

0 comments on commit 46b9e7a

Please sign in to comment.