Explorar o código

compare with original URL (see #776 - 1)

Gildas %!s(int64=4) %!d(string=hai) anos
pai
achega
c80711432a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/single-file/single-file-core.js

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

@@ -1673,7 +1673,7 @@ class ProcessorHelper {
 							// ignored
 						}
 					}
-					if (testValidURL(resolvedURL) && resourceURL != resolvedURL && stylesheetContent.includes(urlFunction)) {
+					if (testValidURL(resolvedURL) && originalResourceURL != resolvedURL && stylesheetContent.includes(urlFunction)) {
 						try {
 							stylesheetContent = stylesheetContent.replace(getRegExp(urlFunction), originalResourceURL ? urlFunction.replace(originalResourceURL, resolvedURL) : "url(" + resolvedURL + ")");
 						} catch (error) {