Gildas 7 anni fa
parent
commit
6226229da4
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  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");
 			if (contentType) {
 				contentType = contentType.match(/^([^;]*)/)[0];
-			}
-			if (contentType.indexOf("/") <= 0) {
-				contentType = null;
+				if (contentType.indexOf("/") <= 0) {
+					contentType = null;
+				}
 			}
 			if (options && options.asDataURI) {
 				try {