This commit is contained in:
@@ -43,15 +43,6 @@ const TEMP_CACHE = new Map() // Используем карту для врем
|
||||
|
||||
async function handleNavigationRequest(request) {
|
||||
if (TEMP_CACHE.has(request.url) && navigator.onLine) {
|
||||
console.log('notifying clients about MAIN_PAGE_READY in cache')
|
||||
clients.matchAll({ type: 'window' }).then((allClients) => {
|
||||
allClients.forEach((client) =>
|
||||
client.postMessage({
|
||||
type: 'MAIN_PAGE_READY',
|
||||
}),
|
||||
)
|
||||
})
|
||||
|
||||
return TEMP_CACHE.get(request.url).clone()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user