Merge pull request #1124 from itsnoteasytonameaccount/noname_bugfix_update

[bugfix][移动端更新报错问题] this作用域未绑定
This commit is contained in:
Spmario233 2024-03-24 08:20:01 +08:00 committed by GitHub
commit dcf1e7f208
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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);