File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ <h3>Select a folder to run Bitcoin Scripts</h3>
124124 < button id ="selectDirButton " autofocus > Select Directory</ button >
125125</ body >
126126< script type ="module ">
127- import { preprocessJS } from '../scripts/compile.js'
127+ import { preprocessJS , compileScript } from '../scripts/compile.js'
128128 import init , { run_script , script_asm_to_hex } from '../libs/bitcoin_scriptexec.js' ;
129129 import { sha256 } from '../libs/sha256.js' ;
130130 import { hashText , toURI } from '../libs/common.js' ;
@@ -221,7 +221,7 @@ <h3>Select a folder to run Bitcoin Scripts</h3>
221221
222222 function preprocess ( text , fileName ) {
223223 if ( fileName . endsWith ( '.js' ) )
224- return preprocessJS ( text )
224+ return compileScript ( text )
225225 else
226226 return text
227227 }
You can’t perform that action at this time.
0 commit comments