From 5b523be1715fc7fd8892ecbf9a932a20607a2989 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 14 Jun 2017 12:55:41 +0200 Subject: [PATCH] Fix drag&drop for pads in the drive --- www/drive/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/drive/main.js b/www/drive/main.js index 0a460a703..3d9c04ad3 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -1027,7 +1027,7 @@ define([ // Don't the the normal drop handler for file upload var fileDrop = ev.dataTransfer.files; - if (fileDrop) { return void onFileDrop(fileDrop, ev); } + if (fileDrop.length) { return void onFileDrop(fileDrop, ev); } var oldPaths = JSON.parse(data).path; if (!oldPaths) { return; }