Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
method BrowserContext.prototype.overridePermissions
Re-export
import { BrowserContext } from "https://deno.land/x/pptr@1.2.0/mod.ts";

Examples

Example 1

const context = browser.defaultBrowserContext();
await context.overridePermissions('https://html5demos.com', ['geolocation']);

Parameters

origin: string
permissions: string[]
  • An array of permissions to grant. All permissions that are not listed here will be automatically denied.

Returns

Promise<void>