This commit is contained in:
juneix
2026-03-07 13:01:39 +08:00
parent f0b921d603
commit 0ae9155c2f
22 changed files with 5731 additions and 1608 deletions
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

+2535
View File
File diff suppressed because it is too large Load Diff
+21
View File
@@ -0,0 +1,21 @@
{
"name": "EmbyX",
"short_name": "EmbyX",
"start_url": "./index.html",
"display": "standalone",
"background_color": "#000000",
"theme_color": "#000000",
"description": "Emby Short Video Player",
"icons": [
{
"src": "icon.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "icon.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

+17
View File
@@ -0,0 +1,17 @@
const CACHE_NAME = 'embyx-v1';
// 安装阶段:不强制缓存大量资源,保持轻量
self.addEventListener('install', (event) => {
self.skipWaiting();
});
// 激活阶段:清理旧缓存
self.addEventListener('activate', (event) => {
event.waitUntil(clients.claim());
});
// 核心:必须有 fetch 处理器才能触发安卓 Chrome 的安装横幅
self.addEventListener('fetch', (event) => {
// 默认直接透传,不做离线缓存以节省空间和避免版本更新延迟
event.respondWith(fetch(event.request));
});