Skip to main content
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.