try to fix infinity preload in iOS
Deploy app frontend / app frontend (push) Successful in 2m44s

This commit is contained in:
2024-12-15 11:03:57 +02:00
parent 66bc0efafc
commit 714f5b7b51
-9
View File
@@ -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()
}