io2015-codelabs
io2015-codelabs copied to clipboard
Missing a code example for the service worker offline app demo page
trafficstars
"Update your fetch event listener to match the code below."
There is no code below ;)
I think the code inserted should be:
`self.addEventListener('activate', event => { event.waitUntil(self.clients.claim()); });
self.addEventListener('fetch', event => { event.respondWith( caches.match(event.request).then(response => { return response || fetch(event.request); }) ); });`
I have confirmed the two blocks of code mentioned above are not shown in Japanese page. English page is alright anyway.