Explorar el Código

remove unneeded await

Former-commit-id: 113a596ca4a46c6d598db63ffcf813a288f59816
Gildas hace 5 años
padre
commit
1608e37ec4

+ 2 - 2
lib/single-file/processors/frame-tree/content/content-frame-tree.js

@@ -96,9 +96,9 @@ this.singlefile.lib.processors.frameTree.content.frames = this.singlefile.lib.pr
 		getAsync: options => {
 			const sessionId = options.sessionId || 0;
 			options = JSON.parse(JSON.stringify(options));
-			return new Promise(async resolve => {
+			return new Promise(resolve => {
 				sessions.set(sessionId, { frames: [], requestTimeouts: {}, responseTimeouts: {}, resolve });
-				await initRequestAsync({ windowId, sessionId, options });
+				initRequestAsync({ windowId, sessionId, options });
 			});
 		},
 		getSync: options => {