Gildas преди 7 години
родител
ревизия
6226229da4
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  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 {