Procházet zdrojové kódy

rollback because of the lack of reliability on Chrome

Gildas před 7 roky
rodič
revize
6d70aa4aa4
1 změnil soubory, kde provedl 1 přidání a 4 odebrání
  1. 1 4
      lib/single-file/single-file-core.js

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

@@ -1083,10 +1083,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 				const resourceURL = DomUtil.normalizeURL(originalResourceURL);
 				if (!DomUtil.testIgnoredPath(resourceURL)) {
 					if (DomUtil.testValidURL(resourceURL, baseURI, options.url)) {
-						let [{ content, indexResource, duplicate }, validResource] = await Promise.all([batchRequest.addURL(resourceURL), !processFont || DOM.validFont(resourceURL)]);
-						if (processFont && !content.startsWith(PREFIX_DATA_URI_VND) && !validResource) {
-							content = EMPTY_DATA_URI;
-						}
+						let { content, indexResource, duplicate } = await batchRequest.addURL(resourceURL);
 						let regExpUrlFunction = DomUtil.getRegExp(urlFunction);
 						if (!stylesheetContent.match(regExpUrlFunction)) {
 							urlFunction = "url(" + originalResourceURL + ")";