Skip to content

Commit ab0b572

Browse files
save file
1 parent 62b45ec commit ab0b572

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

utils/misc/nodejs-terminal/v2.0/nodejs-terminal-v2.0.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,12 @@
287287

288288
var node = document.createElement('webcontainer-iframe');
289289
node.setAttribute('component','page');
290-
document.body.append(node);
290+
//document.body.append(node);
291291
var mod2 = mod.create({mod,name:'webcontainer-iframe'});
292292
var result = await mod.build({root:node,mod:mod2});
293-
await mod2.auto();
294293
var wciframe = mod2['webcontainer-iframe'];
294+
wciframe.initmod({vm});
295+
await mod2.auto();
295296
return wciframe;
296297

297298
}//niframe

0 commit comments

Comments
 (0)