Browse Source

HUE-8809 [fb] Fix js exception when dropping a file in the file browser

Johan Ahlen 6 years ago
parent
commit
9724236bbb
1 changed files with 4 additions and 4 deletions
  1. 4 4
      desktop/core/src/desktop/js/ext/fileuploader.custom.js

+ 4 - 4
desktop/core/src/desktop/js/ext/fileuploader.custom.js

@@ -783,10 +783,10 @@ qq.UploadDropZone.prototype = {
         });
     },
     _isValidFileDrag: function(e){
-        var dt = e.dataTransfer,
-            // do not check dt.types.contains in webkit, because it crashes safari 4
-            isWebkit = navigator.userAgent.indexOf("AppleWebKit") > -1;
-            isIE9 = navigator.appVersion.indexOf("MSIE 9") > -1;
+        var dt = e.dataTransfer;
+        // do not check dt.types.contains in webkit, because it crashes safari 4
+        var isWebkit = navigator.userAgent.indexOf("AppleWebKit") > -1;
+        var isIE9 = navigator.appVersion.indexOf("MSIE 9") > -1;
 
         if (isIE9) return false;