Skip to content

Commit

Permalink
fix: update pwa manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
drodichkin committed Nov 11, 2024
1 parent e3ab568 commit c2904b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@ export default defineNuxtConfig({
},
manifest: {
name: 'VATSIM Radar',
short_name: 'VR',
short_name: 'VATSIM Radar',
description: 'VATSIM Traffic Monitoring Service',
theme_color: '#3B6CEC',
theme_color: '???',
orientation: 'portrait',
display: 'standalone',
// @ts-expect-error tabbed not supported here
display_override: ['window-controls-overlay', 'tabbed', 'minimal-ui', 'standalone'],
display_override: ['window-controls-overlay', 'tabbed', 'standalone'],
start_url: '/',
dir: 'ltr',
lang: 'en',
Expand Down
10 changes: 10 additions & 0 deletions src/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ useHead(() => {
.map(([key, value]) => `--${ key.replace('Rgb', '') }: ${ (value as number[]).join(',') }`)
.join(';');
const themeColor = getCurrentThemeHexColor('darkgray1000');
return {
titleTemplate(title) {
if (!title) return 'VATSIM Radar';
Expand All @@ -131,6 +133,14 @@ useHead(() => {
name: 'keywords',
content: 'vatsim, vatspy, simaware, vatglasses, ватсим, vatsim traffic, vatsim tracker',
},
{
name: 'msapplication-TileColor',
content: themeColor,
},
{
name: 'theme-color',
content: themeColor,
},
],
htmlAttrs: {
lang: 'en',
Expand Down

0 comments on commit c2904b6

Please sign in to comment.