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

Commit

Permalink
fix: fix up examples (#3799)
Browse files Browse the repository at this point in the history
Not sure how the build for #3785 passed without this, but it did?
  • Loading branch information
achingbrain committed Aug 9, 2021
1 parent b7fc9e8 commit 746a54c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/browser-exchange-files/public/app.js
Expand Up @@ -239,9 +239,9 @@ async function getFile () {

FILES.push(hash)

for await (const file of node.get(hash)) {
if (file.content) {
const content = uint8ArrayConcat(await all(file.content))
for await (const file of node.ls(hash)) {
if (file.type === 'file') {
const content = uint8ArrayConcat(await all(node.cat(file.cid)))

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

0 comments on commit 746a54c

Please sign in to comment.