feat: use private viewportSize property
This commit is contained in:
@@ -304,7 +304,7 @@ export class RemoteBrowser {
|
|||||||
if (page) {
|
if (page) {
|
||||||
await this.stopScreencast();
|
await this.stopScreencast();
|
||||||
this.currentPage = page;
|
this.currentPage = page;
|
||||||
await this.currentPage.setViewportSize({ height: 400, width: 900 })
|
await this.currentPage.setViewportSize(this.viewportSize);
|
||||||
this.client = await this.currentPage.context().newCDPSession(this.currentPage);
|
this.client = await this.currentPage.context().newCDPSession(this.currentPage);
|
||||||
this.socket.emit('urlChanged', this.currentPage.url());
|
this.socket.emit('urlChanged', this.currentPage.url());
|
||||||
await this.makeAndEmitScreenshot();
|
await this.makeAndEmitScreenshot();
|
||||||
|
|||||||
Reference in New Issue
Block a user