Skip to content

Commit 4615b36

Browse files
committed
feat(tpl): add condition for detecting non-dir files
1 parent 361cfce commit 4615b36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tpl/frontend/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@
835835
}
836836

837837
var nodir = Array.prototype.slice.call(files).every(function (file) {
838-
return !file.webkitRelativePath;
838+
return !file.webkitRelativePath || file.webkitRelativePath.indexOf('/') < 0;
839839
});
840840
if (nodir) {
841841
onClickOptFile(); // prevent clear input files

0 commit comments

Comments
 (0)