Version PWA icon asset to refresh Android cache
This commit is contained in:
9
static/icons/icon-v2.svg
Normal file
9
static/icons/icon-v2.svg
Normal file
@@ -0,0 +1,9 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
||||
<rect width="512" height="512" rx="104" fill="#ffffff"/>
|
||||
<rect x="156" y="70" width="200" height="200" rx="0" fill="#031a49"/>
|
||||
<path d="M156 170h200" stroke="#ffffff" stroke-width="16" stroke-linecap="square"/>
|
||||
<circle cx="256" cy="170" r="55" fill="#ffffff"/>
|
||||
<text x="256" y="430" text-anchor="middle" fill="#031a49" font-family="Arial, Helvetica, sans-serif" font-size="178" font-weight="900" letter-spacing="-14">
|
||||
<tspan fill="#031a49">O</tspan><tspan fill="#006c70">S</tspan>
|
||||
</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 575 B |
@@ -8,7 +8,7 @@
|
||||
<meta name="apple-mobile-web-app-title" content="OpenSquared">
|
||||
<title>OpenSquared</title>
|
||||
<link rel="manifest" href="/manifest.webmanifest">
|
||||
<link rel="icon" href="/icons/icon.svg" type="image/svg+xml">
|
||||
<link rel="icon" href="/icons/icon-v2.svg" type="image/svg+xml">
|
||||
<link rel="stylesheet" href="/styles.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"orientation": "portrait",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/icons/icon.svg",
|
||||
"src": "/icons/icon-v2.svg",
|
||||
"sizes": "any",
|
||||
"type": "image/svg+xml",
|
||||
"purpose": "any maskable"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
const CACHE_NAME = "opensquared-assistant-v1";
|
||||
const CACHE_NAME = "opensquared-assistant-v2";
|
||||
const ASSETS = [
|
||||
"/",
|
||||
"/styles.css",
|
||||
"/app.js",
|
||||
"/manifest.webmanifest",
|
||||
"/icons/icon.svg"
|
||||
"/icons/icon-v2.svg"
|
||||
];
|
||||
|
||||
self.addEventListener("install", (event) => {
|
||||
|
||||
Reference in New Issue
Block a user