Re: [w3c/payment-handler] SW registration code unclear/incorrect (#223)

```js
navigator.serviceWorker.register('/sw.js');
const registration = await navigator.serviceWorker.ready;
await addInstruments(registration);
```

…should be fine.

Btw, `const { registration } = …` is performing destructuring, so the result will be `undefined`.

-- 
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/payment-handler/issues/223#issuecomment-345734493

Received on Monday, 20 November 2017 15:43:33 UTC