chore(frame): minor refactor in FrameManager (#2597)

This commit is contained in:
Yaniv Efraim 2018-05-26 03:29:11 +03:00 committed by Andrey Lushnikov
parent f6393d876e
commit 7d64d40d66

View File

@ -367,8 +367,7 @@ class Frame {
*/ */
async $eval(selector, pageFunction, ...args) { async $eval(selector, pageFunction, ...args) {
const document = await this._document(); const document = await this._document();
const value = await document.$eval(selector, pageFunction, ...args); return document.$eval(selector, pageFunction, ...args);
return value;
} }
/** /**