Gildas 7 лет назад
Родитель
Сommit
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 {