Skip to content

Commit

Permalink
feat(devices): remove name from device objects (#1414)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelEinbinder authored Mar 17, 2020
1 parent e4225ad commit 39e5eb7
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 169 deletions.
3 changes: 1 addition & 2 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ const iPhone = devices['iPhone 6'];
(async () => {
const browser = await webkit.launch();
const context = await browser.newContext({
viewport: iPhone.viewport,
userAgent: iPhone.userAgent
...iPhone
});
const page = await context.newPage();
await page.goto('http://example.com');
Expand Down
Loading

0 comments on commit 39e5eb7

Please sign in to comment.