Skip to content

Commit

Permalink
Update icons
Browse files Browse the repository at this point in the history
  • Loading branch information
davidje13 committed Oct 15, 2023
1 parent ec9a14b commit e1a99b3
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/backend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ export const appFactory = async (config: ConfigT): Promise<App> => {
res.header('permissions-policy', PERMISSIONS_POLICY);
res.header('referrer-policy', 'no-referrer');
res.header('cross-origin-opener-policy', 'same-origin');
// Note: CORP causes manifest icons to fail to load in Chrome Devtools,
// but does not break actual functionality
// See: https://bugs.chromium.org/p/chromium/issues/detail?id=949481
res.header('cross-origin-resource-policy', 'same-origin');
res.header('cross-origin-embedder-policy', 'require-corp');
next();
Expand Down
3 changes: 2 additions & 1 deletion src/frontend/resources/html-template.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
<meta name="viewport" content="width=device-width">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="apple-mobile-web-app-title" content="<%= htmlWebpackPlugin.options.title %>">
<meta name="format-detection" content="telephone=no">
<meta name="theme-color" content="#4EC7B6">
<title><%= htmlWebpackPlugin.options.title %></title>
<link rel="icon" href="/favicon.png">
<link rel="icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png"/>
<link rel="manifest" href="/manifest.json"/>
<!-- stylesheet CSP hash: 'sha256-dhQFgDyZCSW+FVxPjFWZQkEnh+5DHADvj1I8rpzmaGU=' -->
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/frontend/resources/static/favicon-mono.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/frontend/resources/static/favicon.ico
Binary file not shown.
Binary file removed src/frontend/resources/static/favicon.png
Binary file not shown.
Binary file added src/frontend/resources/static/favicon512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 24 additions & 4 deletions src/frontend/resources/static/manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,34 @@
{
"dir": "ltr",
"lang": "en-GB",
"short_name": "Refacto",
"name": "Refacto",
"description": "Run team retros with remote team members.",
"start_url": "/",
"scope": "/",
"id": "/",
"icons": [
{
"src": "/favicon.png",
"type": "image/png"
"src": "favicon512.png",
"type": "image/png",
"purpose": "any",
"sizes": "512x512"
},
{
"src": "apple-touch-icon.png",
"type": "image/png",
"purpose": "maskable",
"sizes": "512x512"
},
{
"src": "favicon-mono.png",
"type": "image/png",
"purpose": "monochrome",
"sizes": "512x512"
}
],
"start_url": "/",
"display": "standalone",
"theme_color": "#4EC7B6",
"background_color": "#FFFFFF"
"background_color": "#FFFFFF",
"categories": ["business", "productivity", "utilities"]
}

0 comments on commit e1a99b3

Please sign in to comment.