Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 746a54c

Browse files
authoredAug 9, 2021
fix: fix up examples (#3799)
Not sure how the build for #3785 passed without this, but it did?
1 parent b7fc9e8 commit 746a54c

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)
This repository has been archived.