Browse Source

removed block

Gildas 7 năm trước cách đây
mục cha
commit
a67a5f0746
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      lib/single-file/single-file-core.js

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

@@ -964,9 +964,9 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 		}
 
 		async processStyleAttributes() {
-			return Promise.all(Array.from(this.styles).map(([, declarationList]) => {
-				return DomProcessorHelper.processStyle(declarationList.children.toArray(), this.baseURI, this.options, this.cssVariables, this.batchRequest);
-			}));
+			return Promise.all(Array.from(this.styles).map(([, declarationList]) =>
+				DomProcessorHelper.processStyle(declarationList.children.toArray(), this.baseURI, this.options, this.cssVariables, this.batchRequest)
+			));
 		}
 
 		replaceStyleAttributes() {