Skip to content

Commit 8cba027

Browse files
committed
Fix WPA
1 parent 48d04d5 commit 8cba027

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

web/public/images/compass-192.png

39.7 KB
Loading

web/public/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"name": "Compass",
44
"icons": [
55
{
6-
"src": "/favicon.ico",
7-
"sizes": "500x500",
8-
"type": "image/ico"
6+
"src": "/images/compass-192.png",
7+
"sizes": "192x192",
8+
"type": "image/png"
99
}
1010
],
1111
"start_url": ".",

web/public/service-worker.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ self.addEventListener('activate', (event) => {
1212
});
1313

1414
self.addEventListener('fetch', (event) => {
15+
const url = new URL(event.request.url);
16+
17+
// Ignore Next.js dev HMR and static chunks
18+
if (url.pathname.startsWith('/_next/') || url.pathname.startsWith('/__next/')) {
19+
return;
20+
}
21+
1522
event.respondWith(
1623
caches.match(event.request).then((cachedResponse) => {
1724
if (cachedResponse) return cachedResponse;

0 commit comments

Comments
 (0)