Explorar el Código

don't replace 4xx with empty contents

Gildas hace 7 años
padre
commit
b72b5734fd
Se han modificado 1 ficheros con 0 adiciones y 3 borrados
  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) {