From 2eba79bc984ac17bd3e76e4c38fcb08ab959cfe5 Mon Sep 17 00:00:00 2001 From: lcmtwn Date: Sun, 5 Apr 2020 05:20:24 +0800 Subject: [PATCH] fix: permissions in mobile and geolocation example (#1667) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f244349dbdfb2..ce69acb16f7c8 100644 --- a/README.md +++ b/README.md @@ -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');