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

fix undefined value

Former-commit-id: 81d6995ff87c6596d70deb29898c669512027db5
Gildas пре 6 година
родитељ
комит
58da2fd084
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/single-file/modules/css-fonts-minifier.js

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

@@ -300,8 +300,8 @@ this.singlefile.lib.modules.fontsMinifier = this.singlefile.lib.modules.fontsMin
 	}
 
 	function testUnicodeRange(docContent, unicodeRange) {
-		unicodeRange = singlefile.lib.helper.removeQuotes(unicodeRange);
 		if (unicodeRange) {
+			unicodeRange = singlefile.lib.helper.removeQuotes(unicodeRange);
 			const unicodeRanges = unicodeRange.split(REGEXP_COMMA);
 			let invalid;
 			const result = unicodeRanges.filter(rangeValue => {