[bugfix][移动端更新报错问题] this作用域未绑定
This commit is contained in:
parent
d462dc5cbd
commit
0d0f4a0d79
|
@ -316,7 +316,7 @@ export class LibInit extends Uninstantable {
|
|||
if (typeof onerror == 'function') onerror(new Error(oReq.statusText || oReq.status));
|
||||
return;
|
||||
}
|
||||
onload(result);
|
||||
onload.call(oReq, result);
|
||||
});
|
||||
if (typeof onerror == 'function') oReq.addEventListener("error", onerror);
|
||||
oReq.open("GET", sScriptURL);
|
||||
|
|
Loading…
Reference in New Issue