- From: François Beaufort via GitHub <sysbot+gh@w3.org>
- Date: Tue, 29 Oct 2019 10:56:38 +0000
- To: public-web-nfc@w3.org
beaufortfrancois has just created a new issue for https://github.com/w3c/web-nfc:
== Remove NDEFPushOptions ignoreRead ==
It seems like the NDEFPushOptions `ignoreRead` could easily be replaced with NOT listening to the `onreading` event as you can see below.
If that's the case, shall we simply remove it?
```js
const reader = new NDEFReader();
reader.scan();
reader.onreading = event => { /* Won't be called because ignoreRead is true */ });
const writer = new NDEFWriter();
await writer.push('hello world', { ignoreRead: true });
```
and its equivalent
```js
const reader = new NDEFReader();
reader.scan();
const writer = new NDEFWriter();
await writer.push('hello world');
reader.onreading = event => { /* Will be called after write happened if needed */ });
```
Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/424 using your GitHub account
Received on Tuesday, 29 October 2019 10:56:40 UTC