Skip to content

Commit

Permalink
Make the page “installable” on Chrome-based browsers
Browse files Browse the repository at this point in the history
Add a 512×512 icon to make the app installable on Chrome-based browsers

Also tweak the app manifest
  • Loading branch information
julienrf committed May 17, 2024
1 parent 3a54e61 commit 33fa607
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
Binary file removed frontend/public/favicoSoaringMeteo.scaled.png
Binary file not shown.
Binary file added frontend/public/favicon.192.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/favicon.512.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 9 additions & 4 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,24 @@ export default defineConfig(() => ({
// registerType: 'autoUpdate',
injectRegister: null,
manifest: {
name: 'Soaring Meteo',
name: 'Soaringmeteo',
description: 'Meteorology for soaring pilots',
short_name: 'SoaringMeteoV2',
short_name: 'Soaringmeteo',
start_url: '/v2/',
theme_color: '#ffffff',
icons: [
{
src: './favicoSoaringMeteo.scaled.png',
src: './favicon.192.png',
size: '192x192',
type: 'image/png'
},
{
src: './favicon.512.png',
size: '512x512',
type: 'image/png'
}
],
display: 'fullscreen'
display: 'standalone'
}
}),
{
Expand Down

0 comments on commit 33fa607

Please sign in to comment.