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

Commit d60aa72

Browse files
committed
fix: fix up examples
Not sure how the build for #3785 passed without this, but it did?
1 parent 1ad6001 commit d60aa72

File tree

1 file changed

+3
-3
lines changed
  • examples/browser-exchange-files/public

1 file changed

+3
-3
lines changed

examples/browser-exchange-files/public/app.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ async function getFile () {
239239

240240
FILES.push(hash)
241241

242-
for await (const file of node.get(hash)) {
243-
if (file.content) {
244-
const content = uint8ArrayConcat(await all(file.content))
242+
for await (const file of node.ls(hash)) {
243+
if (file.type === 'file') {
244+
const content = uint8ArrayConcat(await all(node.cat(file.cid)))
245245

246246
await appendFile(file.name, hash, file.size, content)
247247
onSuccess(`The ${file.name} file was added.`)

0 commit comments

Comments
 (0)