From 723e676142b4bc59c6b56761f8c365a9fa77fb37 Mon Sep 17 00:00:00 2001 From: josephsmendoza Date: Sat, 17 Dec 2022 04:27:20 +0000 Subject: [PATCH] don't load font face in safe mode --- AssetLoader.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')