فهرست منبع

fixed unhandled exception

Gildas 7 سال پیش
والد
کامیت
cb02fc6ac6
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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;