We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22d4784 commit cad97b7Copy full SHA for cad97b7
1 file changed
utils/misc/nodejs-terminal/v2.0/nodejs-terminal-v2.0.html
@@ -517,6 +517,7 @@
517
try{
518
519
var data = await webcontainer.export(cwd_abs,{format:'json'});
520
+ var str = JSON.stringify(data);
521
522
}//try
523
catch(err2){
@@ -530,7 +531,7 @@
530
531
return;
532
}
533
- var blob = new Blob([data]);
534
+ var blob = new Blob([str]);
535
var file = {name:'snapshot.bin',icon:snap_icon};
536
537
complete.load(file,blob);
@@ -556,7 +557,7 @@
556
557
term.writeln.green('loading snapshot ...');
558
559
var blob = cur.blob;
- var buf = await blob.arrayBuffer();
560
+ var buf = await blob.text();
561
console.log(blob);
562
var mountPoint = cwd;
563
console.log('mountPoint',mountPoint);
0 commit comments