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

Clears all permission overrides for the browser context.

Examples

Example 1

const context = browser.defaultBrowserContext();
context.overridePermissions('https://example.com', ['clipboard-read']);
// do stuff ..
context.clearPermissionOverrides();

Returns

Promise<void>