Преглед на файлове

fixed unicode range testing one Firefox

Gildas преди 7 години
родител
ревизия
1a5d55df79
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lib/single-file/css-fonts-minifier.js

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

@@ -246,7 +246,7 @@ this.fontsMinifier = this.fontsMinifier || (() => {
 
 	function testUnicodeRange(doc, rule) {
 		const unicodeRange = rule.style.getPropertyValue("unicode-range");
-		const docContent = doc.body.outerText;
+		const docContent = doc.body.innerText;
 		if (unicodeRange) {
 			const unicodeRanges = unicodeRange.split(REGEXP_COMMA);
 			const result = unicodeRanges.filter(rangeValue => {