Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix examples: remove JSON.stringify and parse. Fix the receive steps. #91

Merged
merged 1 commit into from
Nov 12, 2015

Conversation

zolkis
Copy link
Contributor

@zolkis zolkis commented Nov 12, 2015

No description provided.

@@ -758,7 +757,7 @@
<pre class="highlight">
navigator.nfc.watch((message) => {
for (let record of message.data) {
let value = JSON.parse(record.data);
let value = record.data;
let article =/[aeio]/.test(value.title) ? "an" : "a";
console.log(`$(value.name) is $(article) $(value.title)`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

 let article =/[aeio]/.test(record.data.title) ? "an" : "a";
 console.log(`$(record.data.name) is $(article) $(record.data.title)`);

@kenchris
Copy link
Contributor

lgtm

kenchris pushed a commit that referenced this pull request Nov 12, 2015
Fix examples: remove JSON.stringify and parse. Fix the receive steps.
@kenchris kenchris merged commit 068641f into w3c:gh-pages Nov 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants