We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32764c3 commit 2d320c8Copy full SHA for 2d320c8
1 file changed
utils/misc/nodejs-terminal/html/webcontainer-fs/webcontainer-fs.html
@@ -172,6 +172,10 @@
172
log.red('no file selected');
173
return;
174
}
175
+ if(filenav.cur.type!=='file'){
176
+ log.red('selected item is not a file');
177
+ return;
178
+ }
179
180
var abs = filenav.cur.path+filenav.cur.name;
181
var uint8 = await webcontainer.fs.readFile(abs);
@@ -189,6 +193,10 @@
189
193
190
194
191
195
196
197
198
199
192
200
201
var blob = await source();
202
var buf = await blob.arrayBuffer();
@@ -207,6 +215,7 @@
207
215
btn.cancel = function(){
208
216
209
217
menu.close();
218
+ //filenav.clear();
210
219
211
220
}//cancel
212
221
0 commit comments