Browse Source

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

Johan Ahlen 6 năm trước cách đây
mục cha
commit
9724236bbb
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  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;