Remove unnecessary semicolon passed to FontFace constructor (#11603)
Fixes #11583
This commit is contained in:
parent
ae593bd7c4
commit
4865a2b2a0
|
|
@ -62,7 +62,7 @@ export const useIconState = create<IconState>()((set, get) => ({
|
|||
([format, url]) => `url(${generateUrl(url)}) format("${format}")`
|
||||
)
|
||||
.join(',\n');
|
||||
const font = new FontFace(fontName, `${src};`);
|
||||
const font = new FontFace(fontName, src);
|
||||
await font.load();
|
||||
document.fonts.add(font);
|
||||
return font;
|
||||
|
|
|
|||
Loading…
Reference in New Issue