1
0
Эх сурвалжийг харах

fixed font name overwriting

Gildas 5 жил өмнө
parent
commit
f336428a6c

+ 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);
 				});