瀏覽代碼

moved code

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 {