don't load font face in safe mode

This commit is contained in:
josephsmendoza
2022-12-17 04:27:20 +00:00
parent 82ded5004a
commit 723e676142
+1 -1
View File
@@ -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')