From 7a20dbe657d060efec55978c3e3cd880bb3aa0d1 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 22 May 2019 13:07:54 +0200 Subject: [PATCH] make sure we don't load the twemoji font multiple times on firefox --- src/utils/FontManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/FontManager.js b/src/utils/FontManager.js index c89d43cb3f..fd0fcdd8de 100644 --- a/src/utils/FontManager.js +++ b/src/utils/FontManager.js @@ -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 {