- From: François Beaufort via GitHub <sysbot+gh@w3.org>
- Date: Mon, 28 Oct 2019 14:16:57 +0000
- To: public-web-nfc@w3.org
I think* the goal is to make sure we get the same NDEFMessage content between what's pushed and what's read.
```js
const writer = new NDEFWriter();
await writer.push({
records: [{
'recordType': 'text',
'mediaType': 'text/foo'
}]
});
const reader = new NDEFReader();
reader.scan();
reader.onreading = ({ message }) => {
const record = message.records[0];
console.log(record.mediaType == 'text/foo'); // <- false if TypeError is not thrown
});
--
GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at https://github.com/w3c/web-nfc/pull/419#issuecomment-546966613 using your GitHub account
Received on Monday, 28 October 2019 14:16:59 UTC