File tree 4 files changed +7
-6
lines changed
4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 32
32
| ` start_url ` <sup >\* 1</sup > | ` String ` | ` routerBase + '?standalone=true' ` | It has to be relative to where the manifest is placed |
33
33
| ` display ` <sup >\* 1</sup > | ` String ` | ` 'standalone' ` | |
34
34
| ` background_color ` <sup >\* 2</sup > | ` String ` | ` '#ffffff' ` | |
35
- | ` theme_color ` <sup >\* 2</sup > | ` String ` | ` this.options.loading.color ` | Nuxt [ loading color ] option |
35
+ | ` theme_color ` <sup >\* 2</sup > | ` String ` | ` pwa.meta.theme_color ` | This module's meta theme-color (see the [ meta module ] ) |
36
36
| ` dir ` | ` String ` | ` 'ltr' ` | ` ltr ` or ` rtl ` . Used with ` lang ` |
37
37
| ` lang ` | ` String ` | ` 'en' ` | Recommended if used ` dir ` |
38
38
| ` useWebmanifestExtension ` <sup >\* 3</sup > | ` Boolean ` | ` false ` | Whether to use ` webmanifest ` file extension (or default ` json ` ) |
43
43
- <sup >\* 2</sup > Recommended (according [ to Google] ( https://web.dev/add-manifest ) )
44
44
- <sup >\* 3</sup > Please see [ wiki] ( https://github.com/nuxt-community/pwa-module/wiki/.webmanifest )
45
45
46
- [ icon module ] : https://pwa.nuxtjs.org/icon/
46
+ [ icon module ] : https://pwa.nuxtjs.org/icon
47
+ [ meta module ] : https://pwa.nuxtjs.org/meta
47
48
[ maximum of 45 characters ] : https://developer.chrome.com/apps/manifest/name
48
49
[ maximum of 12 characters ] : https://developer.chrome.com/apps/manifest/name
49
50
[ loading color ] : https://nuxtjs.org/api/configuration-loading/#customizing-the-progress-bar
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ These articles will help you decide an appropriate value:
76
76
- Meta: ` description `
77
77
78
78
### ` theme_color `
79
- - Default: options.loading.color
79
+ - Default: ` undefined `
80
80
- Meta: ` theme-color `
81
81
82
82
### ` lang `
Original file line number Diff line number Diff line change @@ -27,15 +27,15 @@ function addManifest (pwa) {
27
27
start_url : routerBase + '?standalone=true' ,
28
28
display : 'standalone' ,
29
29
background_color : '#ffffff' ,
30
- theme_color : this . options . loading && this . options . loading . color ,
30
+ theme_color : pwa . meta . theme_color ,
31
31
lang : 'en' ,
32
32
useWebmanifestExtension : false ,
33
33
fileName : 'manifest.[hash].[ext]'
34
34
}
35
35
36
36
const options = { ...defaults , ...pwa . manifest }
37
37
38
- // Remve extra fields from manifest
38
+ // Remove extra fields from manifest
39
39
const manifest = { ...options }
40
40
delete manifest . src
41
41
delete manifest . publicPath
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function generateMeta (pwa) {
27
27
favicon : true ,
28
28
mobileAppIOS : undefined ,
29
29
appleStatusBarStyle : 'default' ,
30
- theme_color : this . options . loading && this . options . loading . color ,
30
+ theme_color : undefined ,
31
31
lang : 'en' ,
32
32
ogType : 'website' ,
33
33
ogSiteName : true ,
You can’t perform that action at this time.
0 commit comments