Closed domenic closed 5 years ago
if (e.request.url.indexOf(dataUrl) === 0)
could be
if (e.request.url.startsWith(dataUrl))
Every browser that supports service workers supports startsWith.
Hi!
Thanks for the feedback. I've rewritten the codelab from scratch and believe I have fixed this issue. The code has been updated, and the new guide is now live.
If you find any issues with the new codelab, please let us know!
Thanks!
could be
Every browser that supports service workers supports startsWith.