File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ declare global {
1515 }
1616}
1717
18+ const helia = await createHelia ( ) ;
19+ const fs = unixfs ( helia ) ;
20+
1821const setSupported = < T extends FileSystemEntry | FileSystemHandle > (
1922 element : HTMLElement ,
2023 sourceFn : (
@@ -59,8 +62,8 @@ const setSupported = <T extends FileSystemEntry | FileSystemHandle>(
5962 const message = {
6063 cid : f . cid . toString ( ) ,
6164 path : f . path ,
62- size : Number ( f . size )
63- }
65+ size : Number ( f . size ) ,
66+ } ;
6467 log ( prefix + JSON . stringify ( message ) ) ;
6568 }
6669 }
@@ -100,6 +103,3 @@ function log(msg: string) {
100103 logDiv . appendChild ( el ) ;
101104 logDiv . scrollTop = logDiv . scrollHeight ;
102105}
103-
104- const helia = await createHelia ( { libp2p : undefined } ) ;
105- const fs = unixfs ( helia ) ;
You can’t perform that action at this time.
0 commit comments