Sw.JS

const CACHE_NAME = ‘govwallet-v1’;
const urlsToCache = [‘/’, ‘/index.html’, ‘/favicon.png’];

self.addEventListener(‘install’, event => {
event.waitUntil(
caches.open(CACHE_NAME).then(cache => cache.addAll(urlsToCache)) );
});

self.addEventListener(‘fetch’, event => {
event.respondWith(
caches.match(event.request).then(response =>
response || fetch(event.request)
)
);
});

Manifest.Jason

{
“name”: “Phase 14 Governance Wallet”,
“short_name”: “GovWallet”,
“start_url”: “./index.html”,
“display”: “standalone”,
“background_color”: “#0f0f0f”,
“theme_color”: “#0f0f0f”,
“description”: “Dynamic credit, trust graph arbitration, and modular governance for decentralized ecosystems.”, “icons”: [
{
“src”: “favicon.png”,
“sizes”: “192×192”,
“type”: “image/png”
},
{
“src”: “favicon.png”,
“sizes”: “512×512”,
“type”: “image/png”
}
]
}