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

Commit f3116e9

Browse files
dirkmcAlan Shaw
authored and
Alan Shaw
committed
chore: update browser script tag example (#1967)
1 parent 3843f47 commit f3116e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

browser-script-tag/index.html

+2-1
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)