Procházet zdrojové kódy

don't replace 4xx with empty contents

Gildas před 7 roky
rodič
revize
b72b5734fd
1 změnil soubory, kde provedl 0 přidání a 3 odebrání
  1. 0 3
      lib/single-file/single-file-browser.js

+ 0 - 3
lib/single-file/single-file-browser.js

@@ -69,9 +69,6 @@ this.SingleFile = this.SingleFile || (() => {
 			} catch (error) {
 				return options && options.asDataURI ? "data:base64," : "";
 			}
-			if (resourceContent.status >= 400) {
-				return options && options.asDataURI ? "data:base64," : "";
-			}
 			let contentType = resourceContent.headers && resourceContent.headers.get("content-type");
 			let charSet;
 			if (contentType) {