- From: Makoto Shimazu <notifications@github.com>
- Date: Mon, 20 May 2019 00:25:31 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 20 May 2019 07:25:54 UTC
```js
// (1) Register sw.js as classic script.
await navigator.serviceWorker.register('sw.js', {type: 'classic'});
// (2) Register sw.js as module script with the same script.
await navigator.serviceWorker.register('sw.js', {type: 'module'});
```
Should (2) install a new ServiceWorker and invoke install/activate event?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1408
Received on Monday, 20 May 2019 07:25:54 UTC