ios pwa沉浸式状态栏
This commit is contained in:
@@ -14,6 +14,7 @@ const manifestPath = path.join(publicDir, 'manifest.json');
|
||||
const siteName = process.env.NEXT_PUBLIC_SITE_NAME || 'MoonTVPlus';
|
||||
|
||||
// manifest.json 模板
|
||||
// Apple 状态栏等配置应写在 HTML meta(layout appleWebApp),非标准 manifest 字段浏览器会忽略
|
||||
const manifestTemplate = {
|
||||
name: siteName,
|
||||
short_name: siteName,
|
||||
@@ -22,8 +23,6 @@ const manifestTemplate = {
|
||||
scope: '/',
|
||||
display: 'standalone',
|
||||
background_color: '#000000',
|
||||
'apple-mobile-web-app-capable': 'yes',
|
||||
'apple-mobile-web-app-status-bar-style': 'black',
|
||||
icons: [
|
||||
{
|
||||
src: '/icons/icon-192x192.png',
|
||||
|
||||
Reference in New Issue
Block a user