Skip to content

Commit 5afa537

Browse files
read_file fix
1 parent b7b9228 commit 5afa537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com/isoterminal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ if( typeof AFRAME != 'undefined '){
440440
this.el.addEventListener('read_file', async (e) => {
441441
const buf = await this.term.worker.read_file( e.detail[0] )
442442
const str = new TextDecoder().decode(buf)
443-
if( typeof e.detail[1] == 'function' ) e.detail[1](str)
443+
if( typeof e.detail[1] == 'function' ) e.detail[1](str,buf)
444444
else console.log(str)
445445
})
446446
},

0 commit comments

Comments
 (0)