mirror of https://github.com/vector-im/riot-web
fix lint
parent
1345db5f98
commit
10b5a9376e
|
@ -78,9 +78,11 @@ export async function fixupColorFonts() {
|
||||||
// we programatically add the right fontface.
|
// we programatically add the right fontface.
|
||||||
let font;
|
let font;
|
||||||
if (await isColrFontSupported()) {
|
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 {
|
} 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);
|
document.fonts.add(font);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue