Explorar o código

don't replace 4xx with empty contents

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
b72b5734fd
Modificáronse 1 ficheiros con 0 adicións e 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) {