Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
chore: update browser script tag example (#1967)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmc authored and Alan Shaw committed Mar 29, 2019
1 parent 24e1b55 commit 758d389
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/browser-script-tag/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ <h2>Some suggestions</h2>
<p>Try adding a new file:</p>

<code style="display:block; white-space:pre-wrap; background-color:#d7d6d6">
node.add(new node.types.Buffer('Hello world!'), (err, filesAdded) => {
const { Buffer } = Ipfs
node.add(new Buffer('Hello world!'), (err, filesAdded) => {
if (err) {
return console.error('Error - ipfs add', err, res)
}
Expand Down

0 comments on commit 758d389

Please sign in to comment.