feat(下载入口): 新增桌面版下载入口
build.yaml / build (push) Successful in 46s

This commit is contained in:
xiaoqidun committed 2026-10-23 21:36:37 +08:00
1 parent 3a39fb293f
commit 850057f46f
2 files changed
+3

No files matched your search

+2
View File
@@ -92,6 +92,8 @@ async function readResource(event, navigation) {
bundle = await readBundle(meta, CLIENT_PREFIX + event.clientId);
}
if (!bundle || !await caches.has(bundle.name)) {
const client = await self.clients.get(event.clientId);
if (client && resourceURL(client.url) !== self.registration.scope) return fetch(event.request);
return Response.error();
}
if (event.resultingClientId) {