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

Commit 09ea377

Browse files
committed
update the example
1 parent a33b5d5 commit 09ea377

File tree

1 file changed

+4
-2
lines changed
  • examples/exchange-files-in-browser/public/js

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ function getFile () {
8787

8888
files.forEach((file) => {
8989
if (file.content) {
90-
const listItem = createFileBlob(file.content, cid)
91-
$filesList.insertBefore(listItem, $filesList.firstChild)
90+
console.log('Fetched file:', cid, file.content.length)
91+
// calling createFileBlob makes the Chrome go "Oh Snap"
92+
// const listItem = createFileBlob(file.content, cid)
93+
// $filesList.insertBefore(listItem, $filesList.firstChild)
9294
}
9395
})
9496
})

0 commit comments

Comments
 (0)