don't load font face in safe mode
This commit is contained in:
+1
-1
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user