Skip to content

Commit b0f226a

Browse files
committed
fix(meta): allow setting appleStatusBarStyle without mobileAppIOS
fixes #338
1 parent c0d86ea commit b0f226a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

docs/content/en/meta.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

5150
There are three options for the status bar style:
5251
1. `default`: The default status bar style for Safari PWAs; white background with black text and icons.

lib/meta/module.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)