rsnext/examples/with-service-worker/public/sw.js
jose-donato e827925735
Example for adding a service worker into a next.js application (#17855)
Example for adding a service worker without any plugin or custom server
2020-11-12 01:09:25 +00:00

3 lines
113 B
JavaScript

self.addEventListener('install', function (event) {
console.log('Hello world from the Service Worker 🤙')
})