chore: remove unused parameter in EmulationManager (#1968)
This commit is contained in:
parent
e998ac9325
commit
37a1e17461
@ -28,7 +28,7 @@ class EmulationManager {
|
||||
* @param {!EmulationManager.Viewport} viewport
|
||||
* @return {Promise<boolean>}
|
||||
*/
|
||||
async emulateViewport(client, viewport) {
|
||||
async emulateViewport(viewport) {
|
||||
const mobile = viewport.isMobile || false;
|
||||
const width = viewport.width;
|
||||
const height = viewport.height;
|
||||
|
@ -629,7 +629,7 @@ class Page extends EventEmitter {
|
||||
* @param {!Page.Viewport} viewport
|
||||
*/
|
||||
async setViewport(viewport) {
|
||||
const needsReload = await this._emulationManager.emulateViewport(this._client, viewport);
|
||||
const needsReload = await this._emulationManager.emulateViewport(viewport);
|
||||
this._viewport = viewport;
|
||||
if (needsReload)
|
||||
await this.reload();
|
||||
|
Loading…
Reference in New Issue
Block a user