Re: [web-nfc] NDEFReader.scan should say when it resolves and returns the promise p (#478)

Thanks for raising this issue @dbaron!
I've fixed spec at https://github.com/w3c/web-nfc/pull/480

Regarding the `onreading` event listener added **after** `await reader.scan()`, we thought it makes sample code easier to read as resolved promise means both that access was granted and NFC is enabled.

-- 
GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/478#issuecomment-566941653 using your GitHub account

Received on Wednesday, 18 December 2019 09:04:53 UTC