ios pwa沉浸式状态栏

This commit is contained in:
mtvpls
2026-07-18 12:20:15 +08:00
parent 1bbea13c62
commit f742787044
7 changed files with 42 additions and 21 deletions
+1 -2
View File
@@ -14,6 +14,7 @@ const manifestPath = path.join(publicDir, 'manifest.json');
const siteName = process.env.NEXT_PUBLIC_SITE_NAME || 'MoonTVPlus';
// manifest.json 模板
// Apple 状态栏等配置应写在 HTML metalayout 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',