Skip to content

Commit

Permalink
fixed error during text drag
Browse files Browse the repository at this point in the history
  • Loading branch information
viliusle committed Jun 11, 2021
1 parent 4dcdb0f commit d680289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/modules/file/open.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ class File_open_class {
var items = e.dataTransfer.items;
for (var i=0; i<items.length; i++) {
var item = items[i].webkitGetAsEntry();
if(item.isDirectory){
if(item && item.isDirectory){
dir_opened = true;
}
}
Expand Down

0 comments on commit d680289

Please sign in to comment.