Explorar o código

fixed unhandled exception

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

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

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