fix(sw) cache favicon.ico from root (#194)

This commit is contained in:
coderaiser 2018-09-28 14:03:25 +03:00
parent 03fda24c03
commit 421b860da5

View file

@ -67,15 +67,6 @@ async function onInstall() {
console.info(`cloudcmd: sw: install: ${NAME}`);
await self.skipWaiting();
const cache = await caches.open(NAME);
const urls = [
'/favicon.ico',
];
const requests = urls.map(createRequest);
return cache.addAll(requests);
}
async function onFetch(event) {