We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 123da8a commit 9e803c2Copy full SHA for 9e803c2
1 file changed
utils/misc/nodejs-terminal/html/snippet-nodejs/v1.0/snippet-nodejs-v1.0.html
@@ -169,6 +169,11 @@
169
170
btn.run = async function(){
171
172
+ if(process){
173
+ term.log('process running');
174
+ return;
175
+ }
176
+
177
var js = editor.get();
178
run(js);
179
@@ -198,8 +203,12 @@
198
203
199
204
200
205
201
- function run(js){
206
+ async function run(js){
202
207
208
209
+ return false;
210
211
212
await webcontainer.fs.writeFile(tmpfile,js);
213
214
if(!chk.persist.checked){
@@ -222,6 +231,7 @@
222
231
process.output.pipeTo(stream)
223
232
224
233
var code = await process.exit;
234
+ process = null;
225
235
226
236
term.log('process exited :',code);
227
237
if(chk.echo.checked){
0 commit comments