File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ Please read this resources before you enable `mobileAppIOS` option:
4646### ` appleStatusBarStyle `
4747- Default: ` default `
4848- Meta: ` apple-mobile-web-app-status-bar-style `
49- - Requires ` mobileAppIOS ` to be ` true `
5049
5150There are three options for the status bar style:
52511 . ` default ` : The default status bar style for Safari PWAs; white background with black text and icons.
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ function generateMeta (pwa) {
3030 nativeUI : false ,
3131 favicon : true ,
3232 mobileAppIOS : undefined ,
33- appleStatusBarStyle : 'default' ,
33+ appleStatusBarStyle : undefined ,
3434 theme_color : undefined ,
3535 lang : 'en' ,
3636 ogType : 'website' ,
@@ -88,11 +88,11 @@ function generateMeta (pwa) {
8888 }
8989
9090 // statusBarStyle (IOS)
91- if ( options . mobileAppIOS && options . appleStatusBarStyle ) {
91+ if ( options . mobileAppIOS || options . appleStatusBarStyle ) {
9292 head . meta . push ( {
9393 hid : 'apple-mobile-web-app-status-bar-style' ,
9494 name : 'apple-mobile-web-app-status-bar-style' ,
95- content : options . appleStatusBarStyle
95+ content : options . appleStatusBarStyle || 'default'
9696 } )
9797 }
9898
You can’t perform that action at this time.
0 commit comments