You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
fix lint
This commit is contained in:
@@ -78,9 +78,11 @@ export async function fixupColorFonts() {
|
||||
// we programatically add the right fontface.
|
||||
let font;
|
||||
if (await isColrFontSupported()) {
|
||||
font = new FontFace("Twemoji", `url('${require("../../res/fonts/Twemoji_Mozilla/TwemojiMozilla-colr.woff2")}')`, {});
|
||||
font = new FontFace("Twemoji",
|
||||
`url('${require("../../res/fonts/Twemoji_Mozilla/TwemojiMozilla-colr.woff2")}')`, {});
|
||||
} else {
|
||||
font = new FontFace("Twemoji", `url('${require("../../res/fonts/Twemoji_Mozilla/TwemojiMozilla-sbix.woff2")}')`, {});
|
||||
font = new FontFace("Twemoji",
|
||||
`url('${require("../../res/fonts/Twemoji_Mozilla/TwemojiMozilla-sbix.woff2")}')`, {});
|
||||
}
|
||||
document.fonts.add(font);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user