aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-12-23 08:22:31 +0000
committerMario <mario@mariovavti.com>2020-12-23 08:22:31 +0000
commitd56bf34326cec24b8d6ad72f77543f4722788ef6 (patch)
treee26506e3fbb02813502f4c4ee805e1a80e87c864
parent9fa3dee522b2dc967e23d3543750a877a0c60c15 (diff)
downloadvolse-hubzilla-d56bf34326cec24b8d6ad72f77543f4722788ef6.tar.gz
volse-hubzilla-d56bf34326cec24b8d6ad72f77543f4722788ef6.tar.bz2
volse-hubzilla-d56bf34326cec24b8d6ad72f77543f4722788ef6.zip
fix javascript warning
-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;
}