From 5afa537069a802abb927f7b553197db20fabc211 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Tue, 8 Apr 2025 18:01:52 +0200 Subject: [PATCH] read_file fix --- com/isoterminal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com/isoterminal.js b/com/isoterminal.js index 0c65e8e..b10bd12 100644 --- a/com/isoterminal.js +++ b/com/isoterminal.js @@ -440,7 +440,7 @@ if( typeof AFRAME != 'undefined '){ this.el.addEventListener('read_file', async (e) => { const buf = await this.term.worker.read_file( e.detail[0] ) const str = new TextDecoder().decode(buf) - if( typeof e.detail[1] == 'function' ) e.detail[1](str) + if( typeof e.detail[1] == 'function' ) e.detail[1](str,buf) else console.log(str) }) },