Эх сурвалжийг харах

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

Johan Ahlen 6 жил өмнө
parent
commit
9724236bbb

+ 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;