mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 09:37:26 +08:00
1 parent
3a39fb293f
commit
850057f46f
2 files changed
+3
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user