mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
enable cache busting for twemoji font
This commit is contained in:
parent
9f4eb7782c
commit
85b448deb6
1 changed files with 2 additions and 2 deletions
|
@ -78,9 +78,9 @@ export async function fixupColorFonts() {
|
|||
// we programatically add the right fontface.
|
||||
let font;
|
||||
if (await isColrFontSupported()) {
|
||||
font = new FontFace("Twemoji", "url('../../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('../../fonts/Twemoji_Mozilla/TwemojiMozilla-sbix.woff2')", {});
|
||||
font = new FontFace("Twemoji", `url('${require("../../res/fonts/Twemoji_Mozilla/TwemojiMozilla-sbix.woff2")}')`, {});
|
||||
}
|
||||
document.fonts.add(font);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue