mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
v1.5.04 - fix redundand : for loaded fonts
This commit is contained in:
parent
68dc822121
commit
a8cf4c04d4
1 changed files with 1 additions and 1 deletions
|
|
@ -1095,7 +1095,7 @@ function addFonts(url) {
|
||||||
let family = rule.style.getPropertyValue('font-family');
|
let family = rule.style.getPropertyValue('font-family');
|
||||||
let font = family.replace(/['"]+/g, '').replace(/ /g, "+");
|
let font = family.replace(/['"]+/g, '').replace(/ /g, "+");
|
||||||
let weight = rule.style.getPropertyValue('font-weight');
|
let weight = rule.style.getPropertyValue('font-weight');
|
||||||
if (weight !== "400") font += ":" + weight;
|
if (weight && weight !== "400") font += ":" + weight;
|
||||||
if (fonts.indexOf(font) == -1) {
|
if (fonts.indexOf(font) == -1) {
|
||||||
fonts.push(font);
|
fonts.push(font);
|
||||||
fetched++
|
fetched++
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue