diff --git a/AssetLoader.mjs b/AssetLoader.mjs index 72b65af..f3c0fe0 100644 --- a/AssetLoader.mjs +++ b/AssetLoader.mjs @@ -55,7 +55,7 @@ export async function loadAsset(dataURL,id=undefined,unsafe=false){ if(unsafe){ document.fonts.add(await new FontFace(id,dataURL).load()) } - return await new FontFace(id,dataURL).load() + return new FontFace(id,dataURL) } case 'image':{ const img=document.createElement('img')