소스 검색

remove integrity attribute of scripts

Former-commit-id: 2526eca3bcfd111b0c7f3749d6f8c443d7cf977f
Gildas 6 년 전
부모
커밋
b5fe4b0a47
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      lib/single-file/single-file-core.js

+ 1 - 0
lib/single-file/single-file-core.js

@@ -1075,6 +1075,7 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
 				let resourceURL;
 				const scriptSrc = scriptElement.getAttribute("src");
 				scriptElement.removeAttribute("src");
+				scriptElement.removeAttribute("integrity");
 				scriptElement.textContent = "";
 				try {
 					resourceURL = util.resolveURL(scriptSrc, this.baseURI);