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

Commit 758d389

Browse files
dirkmcAlan Shaw
authored and
Alan Shaw
committed
chore: update browser script tag example (#1967)
1 parent 24e1b55 commit 758d389

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/browser-script-tag/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ <h2>Some suggestions</h2>
2828
<p>Try adding a new file:</p>
2929

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

0 commit comments

Comments
 (0)