[bugfix][移动端更新报错问题] this作用域未绑定

This commit is contained in:
itsnoteasytonameaccount 2024-03-24 03:30:45 +08:00
parent d462dc5cbd
commit 0d0f4a0d79
1 changed files with 1 additions and 1 deletions

View File

@ -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);