瀏覽代碼

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

Johan Ahlen 6 年之前
父節點
當前提交
9724236bbb
共有 1 個文件被更改,包括 4 次插入4 次删除
  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;