From 37a1e17461ba7f24715fba71a735c64a3c4cf8ef Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Mon, 5 Feb 2018 15:51:43 -0500 Subject: [PATCH] chore: remove unused parameter in EmulationManager (#1968) --- lib/EmulationManager.js | 2 +- lib/Page.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/EmulationManager.js b/lib/EmulationManager.js index 77fae433..9d3341cb 100644 --- a/lib/EmulationManager.js +++ b/lib/EmulationManager.js @@ -28,7 +28,7 @@ class EmulationManager { * @param {!EmulationManager.Viewport} viewport * @return {Promise} */ - async emulateViewport(client, viewport) { + async emulateViewport(viewport) { const mobile = viewport.isMobile || false; const width = viewport.width; const height = viewport.height; diff --git a/lib/Page.js b/lib/Page.js index 4ed8edb0..2387b7ae 100644 --- a/lib/Page.js +++ b/lib/Page.js @@ -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();