chore(frame): minor refactor in FrameManager (#2597)
This commit is contained in:
parent
f6393d876e
commit
7d64d40d66
@ -367,8 +367,7 @@ class Frame {
|
||||
*/
|
||||
async $eval(selector, pageFunction, ...args) {
|
||||
const document = await this._document();
|
||||
const value = await document.$eval(selector, pageFunction, ...args);
|
||||
return value;
|
||||
return document.$eval(selector, pageFunction, ...args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user