Skip to content

Commit

Permalink
add await to example
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanok committed Apr 7, 2020
1 parent a270e61 commit fb9643f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function makeSomeDataItems() {
{ name: 'App-Version', value: '1.0.0' }
]

let data = ArData.createData({ to: 'awalleet', data: 'somemessage', tags: myTags }, jwk);
let data = await ArData.createData({ to: 'awalleet', data: 'somemessage', tags: myTags }, jwk);

// Add some more tags after creation.
ArData.addTag(data, 'MyTag', 'value1')
Expand Down

0 comments on commit fb9643f

Please sign in to comment.