png icon to fix small icon issue on android

This commit is contained in:
Трошин Антон Валерьевич
2026-07-12 22:10:45 +03:00
parent e8a8682e27
commit 818d4a3857
2 changed files with 6 additions and 4 deletions
+3 -3
View File
@@ -10,7 +10,7 @@
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<link rel="icon" type="image/svg+xml" href="icon.svg"> <link rel="icon" type="image/svg+xml" href="icon.svg">
<link rel="apple-touch-icon" href="icon-192.png"> <link rel="apple-touch-icon" href="icon-192.png">
<link rel="stylesheet" href="styles.css?v=13"> <link rel="stylesheet" href="styles.css?v=14">
</head> </head>
<body> <body>
<div id="app"> <div id="app">
@@ -158,10 +158,10 @@
</div> </div>
<script type="module" src="app.js?v=13"></script> <script type="module" src="app.js?v=14"></script>
<script> <script>
if ('serviceWorker' in navigator) { if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js?v=13').catch(() => {}); navigator.serviceWorker.register('/sw.js?v=14').catch(() => {});
} }
</script> </script>
</body> </body>
+3 -1
View File
@@ -1,4 +1,4 @@
const CACHE_NAME = 'numnum-v13'; const CACHE_NAME = 'numnum-v14';
const ASSETS = [ const ASSETS = [
'/', '/',
'/index.html', '/index.html',
@@ -7,6 +7,8 @@ const ASSETS = [
'/numerals.js', '/numerals.js',
'/manifest.json', '/manifest.json',
'/icon.svg', '/icon.svg',
'/icon-192.png',
'/icon-512.png',
]; ];
self.addEventListener('install', (e) => { self.addEventListener('install', (e) => {