소스 검색

make sure shadowRootsData has a length

Gildas 6 년 전
부모
커밋
c56e8dd433
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/single-file/single-file-core.js

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

@@ -880,7 +880,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 		async resolveShadowRootURLs() {
 			const rootOptions = this.options;
 			const batchRequest = this.batchRequest;
-			if (this.options.shadowRootsData) {
+			if (this.options.shadowRootsData && this.options.shadowRootsData.length) {
 				await resolveURLs(this.doc);
 			}