diff options
author | Mario <mario@mariovavti.com> | 2020-12-23 08:22:31 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-12-23 08:22:31 +0000 |
commit | d56bf34326cec24b8d6ad72f77543f4722788ef6 (patch) | |
tree | e26506e3fbb02813502f4c4ee805e1a80e87c864 | |
parent | 9fa3dee522b2dc967e23d3543750a877a0c60c15 (diff) | |
download | volse-hubzilla-d56bf34326cec24b8d6ad72f77543f4722788ef6.tar.gz volse-hubzilla-d56bf34326cec24b8d6ad72f77543f4722788ef6.tar.bz2 volse-hubzilla-d56bf34326cec24b8d6ad72f77543f4722788ef6.zip |
fix javascript warning
-rw-r--r-- | view/js/mod_cloud.js | 2 |
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; } |