Skip to content

Moving over from PWA

If you are have been working with a PWA, be aware things will be different when building a Hyvä project.

Unregister Service Workers

Hyvä currently doesn't use service workers, so you need to make sure to unregister the service workers.

navigator.serviceWorker && navigator.serviceWorker.getRegistrations()
    .then(registrations => {
        for (let registration of registrations) {
            registration.unregister();
        }
    })