Gildas 7 gadi atpakaļ
vecāks
revīzija
5bd9ddd3b1
1 mainītis faili ar 0 papildinājumiem un 2 dzēšanām
  1. 0 2
      lib/single-file/css-fonts-minifier.js

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

@@ -294,7 +294,6 @@ this.fontsMinifier = this.fontsMinifier || (() => {
 						const fontFamily = removeQuotes(rule.style.getPropertyValue("font-family"));
 						const fontFamily = removeQuotes(rule.style.getPropertyValue("font-family"));
 						if (fontFamily && !unusedFonts.includes(fontFamily)) {
 						if (fontFamily && !unusedFonts.includes(fontFamily)) {
 							let optionalTest;
 							let optionalTest;
-
 							const optionalUsedFonts = filteredUsedFonts && filteredUsedFonts.get(fontFamily);
 							const optionalUsedFonts = filteredUsedFonts && filteredUsedFonts.get(fontFamily);
 							if (optionalUsedFonts && optionalUsedFonts.length) {
 							if (optionalUsedFonts && optionalUsedFonts.length) {
 								const fontStyle = rule.style.getPropertyValue("font-style") || "normal";
 								const fontStyle = rule.style.getPropertyValue("font-style") || "normal";
@@ -306,7 +305,6 @@ this.fontsMinifier = this.fontsMinifier || (() => {
 							} else {
 							} else {
 								optionalTest = true;
 								optionalTest = true;
 							}
 							}
-
 							if (testUnicodeRange(docContent, rule.style.getPropertyValue("unicode-range")) && optionalTest) {
 							if (testUnicodeRange(docContent, rule.style.getPropertyValue("unicode-range")) && optionalTest) {
 								stylesheetContent += rule.cssText;
 								stylesheetContent += rule.cssText;
 							}
 							}