File tree 1 file changed +18
-11
lines changed
packages/@vue/cli-plugin-pwa/lib
1 file changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -111,13 +111,18 @@ module.exports = class HtmlPwaPlugin {
111
111
rel : 'manifest' ,
112
112
href : getTagHref ( publicPath , manifestPath , assetsVersionStr )
113
113
}
114
- ) ,
115
- makeTag ( 'meta' , {
116
- name : 'theme-color' ,
117
- content : themeColor
118
- } )
114
+ )
119
115
)
120
116
117
+ if ( themeColor != null ) {
118
+ data . head . push (
119
+ makeTag ( 'meta' , {
120
+ name : 'theme-color' ,
121
+ content : themeColor
122
+ } )
123
+ )
124
+ }
125
+
121
126
// Add to home screen for Safari on iOS
122
127
data . head . push (
123
128
makeTag ( 'meta' , {
@@ -154,12 +159,14 @@ module.exports = class HtmlPwaPlugin {
154
159
content : getTagHref ( publicPath , iconPaths . msTileImage , assetsVersionStr )
155
160
} ) )
156
161
}
157
- data . head . push (
158
- makeTag ( 'meta' , {
159
- name : 'msapplication-TileColor' ,
160
- content : msTileColor
161
- } )
162
- )
162
+ if ( msTileColor != null ) {
163
+ data . head . push (
164
+ makeTag ( 'meta' , {
165
+ name : 'msapplication-TileColor' ,
166
+ content : msTileColor
167
+ } )
168
+ )
169
+ }
163
170
164
171
cb ( null , data )
165
172
} )
You can’t perform that action at this time.
0 commit comments