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

Commit e02ec1b

Browse files
committed
chore: decode output
1 parent 672f11b commit e02ec1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/browser-browserify/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ document.addEventListener('DOMContentLoaded', async () => {
2525
async function display (cid) {
2626
for await (const data of node.cat(cid)) {
2727
document.getElementById('cid').innerText = cid
28-
document.getElementById('content').innerText = data
28+
document.getElementById('content').innerText = new TextDecoder().decode(data)
2929
document.getElementById('output').setAttribute('style', 'display: block')
3030
}
3131
}

0 commit comments

Comments
 (0)