Gildas 7 лет назад
Родитель
Сommit
09bcd6b620
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      lib/single-file/single-file-core.js

+ 2 - 2
lib/single-file/single-file-core.js

@@ -1088,7 +1088,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 				}
 			}
 
-			function getURLFunctions(cssRules, urlFunctions = { style: new Set(), other: new Set() }) {
+			function getURLFunctions(cssRules, urlFunctions = { style: [], other: [] }) {
 				Array.from(cssRules).forEach(cssRule => {
 					if (cssRule.type == CSSRule.MEDIA_RULE) {
 						getURLFunctions(cssRule.cssRules, urlFunctions);
@@ -1108,7 +1108,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 					const resourceURL = DomUtil.normalizeURL(originalResourceURL);
 					if (!DomUtil.testIgnoredPath(resourceURL)) {
 						if (DomUtil.testValidURL(resourceURL, baseURI, options.url) && cssText.includes(urlFunction)) {
-							urlFunctions.add(urlFunction);
+							urlFunctions.push(urlFunction);
 						}
 					}
 				});