Skip to content

Commit 6afa461

Browse files
committed
fix the web manifest
1 parent 65d981a commit 6afa461

3 files changed

Lines changed: 54 additions & 1 deletion

File tree

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<meta name="theme-color" content="#000000" />
88
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
99
<link rel="preconnect" href="https://hackertab.dev" />
10-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
1110
<script>
1211
// Blocking script to avoid the initial background flickering (switching from light to dark)
1312
// https://stackoverflow.com/a/63033934/3495717
@@ -18,6 +17,7 @@
1817
</script>
1918
<% if (!!+process.env.REACT_APP_WEB_BUILD) { %>
2019
<title>Hackertab</title>
20+
<link rel="manifest" href="%PUBLIC_URL%/web_manifest.json" />
2121
<% } else { %>
2222
<title>New Tab</title>
2323
<% } %>

public/logos/logoVector.svg

Lines changed: 26 additions & 0 deletions
Loading

public/web_manifest.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"short_name": "Hackertab.dev",
3+
"name": "The Developer’s Homepage",
4+
"description": "Hackertab helps developers stay up-to-date with the latest tech happenings",
5+
"icons": [
6+
{
7+
"src": "/logos/logoVector.svg",
8+
"type": "image/svg+xml",
9+
"sizes": "1200x1200"
10+
},
11+
{
12+
"src": "/logos/logo192.png",
13+
"type": "image/png",
14+
"sizes": "192x192"
15+
},
16+
{
17+
"src": "/logos/logo512.png",
18+
"type": "image/png",
19+
"sizes": "512x512"
20+
}
21+
],
22+
"start_url": "/?source=pwa",
23+
"background_color": "#000000",
24+
"display": "standalone",
25+
"scope": "/",
26+
"theme_color": "#000000"
27+
}

0 commit comments

Comments
 (0)