Skip to main content
Calum Ryan
homepage
Site menu
Articles
Notes
Bookshelf
March 28th, 2019
10:07 GMT
javascript
serviceworker
pwa
Could be quite neatly combined if you're able to set a condition based on the page being view with the statment if ('serviceWorker' in navigator) { ..or similar assuming your ServiveWorker script begins like this.
In reply to
https://twitter.com/dletorey/status/1111206567825813504
Calum Ryan
javascript
serviceworker
pwa
https://calumryan.com/replies/2525