Skip to content

Commit

Permalink
add pwacompat to auto insert meta/link tags (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
getsetbro authored Dec 22, 2023
1 parent d764db5 commit d4e586b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions apps/web/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ unregisterServiceWorkers();
export const links: LinksFunction = () => [
{ rel: "manifest", href: "/resources/manifest.webmanifest" },
{ rel: "stylesheet", href: stylesheetUrl },
{ rel: "stylesheet", href: stylesheetUrl },
{ rel: "icon", type: "image/png", href: glyphUrl },
{
rel: "mask-icon",
Expand Down Expand Up @@ -261,6 +262,11 @@ function Document({
defer
></script>
)}
<script
async
src="https://unpkg.com/pwacompat"
crossOrigin="anonymous"
></script>
</head>
<body className="h-full">
<LoadingIndicator />
Expand Down
10 changes: 5 additions & 5 deletions apps/web/app/routes/resources.manifest[.]webmanifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ export async function loader() {
type: "image/png",
density: "4.0",
},
// {
// src: "logo512.png",
// type: "image/png",
// sizes: "512x512",
// },
{
src: "/logo512.png",
sizes: "512x512",
type: "image/png",
},
],
},
{
Expand Down

0 comments on commit d4e586b

Please sign in to comment.