From a8cf4c04d48cf0b65b70cc288a79c62c8b4c50b3 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Mon, 1 Feb 2021 16:39:01 +0300 Subject: [PATCH] v1.5.04 - fix redundand : for loaded fonts --- modules/ui/style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/style.js b/modules/ui/style.js index 50566062..400c98de 100644 --- a/modules/ui/style.js +++ b/modules/ui/style.js @@ -1095,7 +1095,7 @@ function addFonts(url) { let family = rule.style.getPropertyValue('font-family'); let font = family.replace(/['"]+/g, '').replace(/ /g, "+"); let weight = rule.style.getPropertyValue('font-weight'); - if (weight !== "400") font += ":" + weight; + if (weight && weight !== "400") font += ":" + weight; if (fonts.indexOf(font) == -1) { fonts.push(font); fetched++