Sfoglia il codice sorgente

fixed unhandled exception

Gildas 7 anni fa
parent
commit
cb02fc6ac6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;