{
"name": "selfchat",
"short_name": "selfchat",
"icons": [
{
"src": "./img/icons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "./img/icons/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"start_url": "/",
"display": "standalone",
"background_color": "#0787ff",
"theme_color": "#0787ff",
...
}
self.__precacheManifest = [].concat(self.__precacheManifest || []);
workbox.precaching.suppressWarnings();
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
self.addEventListener("install", async () => {
await self.skipWaiting();
console.log("Skipped wating. Service worker has taken control.");
});
Default offline content
Cached content
Full access & ownership of your data
DEMO (Video)
Render the content ?
Make links clickable ?