fix(pwa): use PNG manifest icons

This commit is contained in:
ssbg04 committed 2026-10-23 13:24:55 +08:00
1 parent d27fb5127c
commit ee8fa32aca
5 files changed
+14 -6

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@
<meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Isal.in" /> <meta name="apple-mobile-web-app-title" content="Isal.in" />
<link rel="apple-touch-icon" href="/favicon.svg?v=6" /> <link rel="apple-touch-icon" href="/icon-192.png" />
<!-- Structured Data for Search Engines (JSON-LD) --> <!-- Structured Data for Search Engines (JSON-LD) -->
<script type="application/ld+json"> <script type="application/ld+json">
Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

+10 -4
View File
@@ -12,10 +12,16 @@
"categories": ["utilities", "productivity", "developer tools"], "categories": ["utilities", "productivity", "developer tools"],
"icons": [ "icons": [
{ {
"src": "/favicon.svg?v=6", "src": "/icon-192.png",
"sizes": "48x48 72x72 96x96 128x128 192x192 256x256 512x512", "sizes": "192x192",
"type": "image/svg+xml", "type": "image/png",
"purpose": "any maskable" "purpose": "any"
},
{
"src": "/icon-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
} }
] ]
} }
+3 -1
View File
@@ -1,9 +1,11 @@
const CACHE_NAME = 'mc-cache-v6'; const CACHE_NAME = 'mc-cache-v7';
const PRECACHE_ASSETS = [ const PRECACHE_ASSETS = [
'/', '/',
'/index.html', '/index.html',
'/manifest.json', '/manifest.json',
'/favicon.svg', '/favicon.svg',
'/icon-192.png',
'/icon-512.png',
]; ];
// Domains that should NEVER be cached or block offline usage (e.g. ad networks) // Domains that should NEVER be cached or block offline usage (e.g. ad networks)