This commit is contained in:
dgflash
2025-08-22 19:07:46 +08:00
parent 6d61b845ee
commit a89eba46a8

View File

@@ -87,7 +87,6 @@ export class ResLoader {
*/
loadRemote<T extends Asset>(url: string, options: IRemoteOptions | null = null): Promise<T> {
return new Promise<T>((resolve, reject) => {
let options: IRemoteOptions | null = null;
assetManager.loadRemote<T>(url, options, (err, data: T) => {
if (err) {
reject(null);