diff --git a/docs/content/en/meta.md b/docs/content/en/meta.md index 85fd0b46..41a2c3d4 100644 --- a/docs/content/en/meta.md +++ b/docs/content/en/meta.md @@ -46,7 +46,6 @@ Please read this resources before you enable `mobileAppIOS` option: ### `appleStatusBarStyle` - Default: `default` - Meta: `apple-mobile-web-app-status-bar-style` -- Requires `mobileAppIOS` to be `true` There are three options for the status bar style: 1. `default`: The default status bar style for Safari PWAs; white background with black text and icons. diff --git a/lib/meta/module.js b/lib/meta/module.js index 8646123f..1da5bf85 100755 --- a/lib/meta/module.js +++ b/lib/meta/module.js @@ -30,7 +30,7 @@ function generateMeta (pwa) { nativeUI: false, favicon: true, mobileAppIOS: undefined, - appleStatusBarStyle: 'default', + appleStatusBarStyle: undefined, theme_color: undefined, lang: 'en', ogType: 'website', @@ -88,11 +88,11 @@ function generateMeta (pwa) { } // statusBarStyle (IOS) - if (options.mobileAppIOS && options.appleStatusBarStyle) { + if (options.mobileAppIOS || options.appleStatusBarStyle) { head.meta.push({ hid: 'apple-mobile-web-app-status-bar-style', name: 'apple-mobile-web-app-status-bar-style', - content: options.appleStatusBarStyle + content: options.appleStatusBarStyle || 'default' }) }