From baba5de9988be987db36d4f1b1c29994f4f03c2a Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Fri, 25 Oct 2024 13:58:54 +0000 Subject: [PATCH] bugfix codemirror --- com/codemirror.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/com/codemirror.js b/com/codemirror.js index 845293f..fb50a50 100644 --- a/com/codemirror.js +++ b/com/codemirror.js @@ -109,8 +109,7 @@ AFRAME.registerComponent('codemirror', { // we don't do via shellcmd: isoterminal.exec(`echo '${str}' > ${file}`,1) // as it would require all kindof ugly stringescaping console.log("updating "+file) - console.log(str) - await this.isoterminal.worker['emulator.update_file'](file, term.convert.toUint8Array(str) ) + await this.isoterminal.worker['emulator.update_file'](file, this.isoterminal.convert.toUint8Array(str) ) }, events:{