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

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

@@ -81,9 +81,9 @@ this.SingleFile = this.SingleFile || (() => {
 			let contentType = resourceContent.headers && resourceContent.headers.get("content-type");
 			let contentType = resourceContent.headers && resourceContent.headers.get("content-type");
 			if (contentType) {
 			if (contentType) {
 				contentType = contentType.match(/^([^;]*)/)[0];
 				contentType = contentType.match(/^([^;]*)/)[0];
-			}
-			if (contentType.indexOf("/") <= 0) {
-				contentType = null;
+				if (contentType.indexOf("/") <= 0) {
+					contentType = null;
+				}
 			}
 			}
 			if (options && options.asDataURI) {
 			if (options && options.asDataURI) {
 				try {
 				try {