chore: remove unused parameter in EmulationManager (#1968)

This commit is contained in:
Andrey Lushnikov 2018-02-05 15:51:43 -05:00 committed by GitHub
parent e998ac9325
commit 37a1e17461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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();