Re: [web-nfc] NDEF Read triggered when writting an NDEF (#551)

> @OlivierGrenoble Thanks for sharing your workaround.
> Quick question: It looks like you use the same `readerAbortController` object in `writeNdef` and `readNfcTagContent`. Is this expected that you abort the one in `writeNdef` when you call `cancelReadOperation`?

It works but I think that this could be done in a better way. 
cancelReadOperation() will not abort the readerAbortController used by the write function because nfcAction is not equal to nfcActions.NFC_READ_ON_GOING. Yeah, it could be better :-S


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

Received on Friday, 3 April 2020 08:39:56 UTC