io2015-codelabs icon indicating copy to clipboard operation
io2015-codelabs copied to clipboard

Missing a code example for the service worker offline app demo page

Open jonasbolin-se opened this issue 8 years ago • 1 comments
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); }) ); });`

jonasbolin-se avatar Dec 27 '16 17:12 jonasbolin-se

I have confirmed the two blocks of code mentioned above are not shown in Japanese page. English page is alright anyway.

aki-s avatar Sep 19 '17 17:09 aki-s