Skip to content

Commit

Permalink
fix: #943
Browse files Browse the repository at this point in the history
  • Loading branch information
smashah committed Oct 16, 2020
1 parent 7373282 commit 57ed8f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export async function initClient(sessionId?: string, config?:ConfigObject, custo
}
await waPage.setUserAgent(customUserAgent||useragent);
await waPage.setViewport({
width: config?.window?.width || width,
height: config?.window?.height || height,
width: config?.viewport?.width || width,
height: config?.viewport?.height || height,
deviceScaleFactor: 1
});
const cacheEnabled = config?.cacheEnabled === false ? false : true;
Expand Down

0 comments on commit 57ed8f2

Please sign in to comment.