diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..077474f Binary files /dev/null and b/logo.png differ diff --git a/sw.js b/sw.js index 4f892d2..472be1e 100644 --- a/sw.js +++ b/sw.js @@ -4,7 +4,11 @@ const STATIC = ['/', '/index.html', '/manifest.json', '/logo.png']; self.addEventListener('install', e => { e.waitUntil( - caches.open(CACHE).then(c => c.addAll(STATIC)) + caches.open(CACHE).then(async c => { + await Promise.allSettled( + STATIC.map(path => c.add(path)) + ); + }) ); self.skipWaiting(); }); diff --git a/vercel.json b/vercel.json index ccc41d8..32496ac 100644 --- a/vercel.json +++ b/vercel.json @@ -30,7 +30,7 @@ }, { "key": "Content-Security-Policy", - "value": "default-src 'self'; script-src 'self' 'unsafe-inline' https://unpkg.com https://cdn.jsdelivr.net https://esm.sh; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://fonts.gstatic.com https://posimai-ui.vercel.app; font-src 'self' data: https://fonts.gstatic.com; img-src 'self' data: https:; media-src 'self' https:; connect-src 'self' https://api.soar-enrich.com wss://api.soar-enrich.com; worker-src 'self'; frame-ancestors 'none';" + "value": "default-src 'self'; script-src 'self' 'unsafe-inline' https://unpkg.com https://cdn.jsdelivr.net https://esm.sh https://posimai-ui.vercel.app; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://fonts.gstatic.com https://posimai-ui.vercel.app; font-src 'self' data: https://fonts.gstatic.com; img-src 'self' data: https:; media-src 'self' https:; connect-src 'self' https://api.soar-enrich.com wss://api.soar-enrich.com https://unpkg.com; worker-src 'self'; frame-ancestors 'none';" }, { "key": "Strict-Transport-Security",