Переглянути джерело

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);
 			}