Skip to content

Commit

Permalink
fix: permissions in mobile and geolocation example (#1667)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcmtwn authored Apr 4, 2020
1 parent 65ca87c commit 2eba79b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const iPhone11 = devices['iPhone 11 Pro'];
viewport: iPhone11.viewport,
userAgent: iPhone11.userAgent,
geolocation: { longitude: 12.492507, latitude: 41.889938 },
permissions: { 'https://www.google.com': ['geolocation'] }
permissions: ['geolocation']
});
const page = await context.newPage();
await page.goto('https://maps.google.com');
Expand Down

0 comments on commit 2eba79b

Please sign in to comment.