Преглед изворни кода

fixed font name overwriting

Gildas пре 5 година
родитељ
комит
f336428a6c
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      lib/single-file/modules/css-fonts-minifier.js

+ 1 - 0
lib/single-file/modules/css-fonts-minifier.js

@@ -163,6 +163,7 @@ this.singlefile.lib.modules.fontsMinifier = this.singlefile.lib.modules.fontsMin
 			test = testFontweight(fontWeight, usedFontWeights);
 			if (!test) {
 				usedFontWeights = optionalUsedFonts.map(fontInfo => {
+					fontInfo = Array.from(fontInfo);
 					fontInfo[2] = "normal";
 					return getUsedFontWeight(fontInfo, fontStyle, declaredFontsWeights);
 				});