aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--view/js/mod_cloud.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/js/mod_cloud.js b/view/js/mod_cloud.js
index 5e7740264..aa9d308eb 100644
--- a/view/js/mod_cloud.js
+++ b/view/js/mod_cloud.js
@@ -150,7 +150,7 @@ $(document).ready(function () {
}
// Check if it's a file
- if (e.dataTransfer.files[0]) {
+ if (typeof e.dataTransfer !== typeof undefined && e.dataTransfer.files[0]) {
$('#file-folder').val(folder);
return true;
}