mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
make sure we don't load the twemoji font multiple times on firefox
This commit is contained in:
parent
ee86471691
commit
7a20dbe657
@ -31,7 +31,8 @@ async function isColrFontSupported() {
|
||||
// Firefox has supported COLR fonts since version 26
|
||||
// but doesn't support the check below with content blocking enabled.
|
||||
if (navigator.userAgent.includes("Firefox")) {
|
||||
return true;
|
||||
colrFontSupported = true;
|
||||
return colrFontSupported;
|
||||
}
|
||||
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user