瀏覽代碼

removed unneeded parenthesis

Gildas 7 年之前
父節點
當前提交
672e5b2078
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/single-file/single-file-core.js

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

@@ -426,7 +426,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 
 		async frames(initialization) {
 			const frameElements = Array.from(this.doc.querySelectorAll("iframe, frame, object[type=\"text/html\"][data]"));
-			await Promise.all(frameElements.map(async (frameElement) => {
+			await Promise.all(frameElements.map(async frameElement => {
 				const frameWindowId = frameElement.getAttribute(WIN_ID_ATTRIBUTE_NAME);
 				if (frameWindowId) {
 					const frameData = this.options.framesData.find(frame => frame.windowId == frameWindowId);