Re: [w3c/ServiceWorker] Feature detection for type="module" support (#1582)

A workaround for now:

```js
let readType = false;
navigator.serviceWorker
  .register('about:blank', {
    get type() {
      readType = true;
    },
  })
  .catch(() => {});
```

If `readType` is false, it doesn't understand `type`.

-- 
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/1582#issuecomment-820449611

Received on Thursday, 15 April 2021 14:07:28 UTC