浏览代码

Switch from XMLHttpRequest.DONE to 4 because IE8

George Corney 9 年之前
父节点
当前提交
28aac5a7f9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Tools/babylon.tools.ts

+ 1 - 1
src/Tools/babylon.tools.ts

@@ -394,7 +394,7 @@
                 request.onprogress = progressCallBack;
 
                 request.onreadystatechange = () => {
-                    if (request.readyState === XMLHttpRequest.DONE) {
+                    if (request.readyState === 4) {
                         request.onreadystatechange = null;//some browsers have issues where onreadystatechange can be called multiple times with the same value
 
                         if (request.status >= 200 && request.status < 300) {