Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 749 Bytes

File metadata and controls

42 lines (29 loc) · 749 Bytes

polyfill.webGL

Note

This plugin only applies to Chromium.

Modify WebGL parameter values.

Options

This plugin has no option.

Example

Use the plugin.

import { chromium } from "playwright-ghost";
import plugins from "playwright-ghost/plugins";

const browser = await chromium.launch({
  plugins: [plugins.polyfill.webGL()],
});
// ...

Advanced

Import

If you want to import only this plugin, you can use the "playwright-ghost/plugins/polyfill/webgl" path in the import.

import { chromium } from "playwright-ghost";
import polyfillWebGLPlugin from "playwright-ghost/plugins/polyfill/webgl";

const browser = await chromium.launch({
  plugins: [polyfillWebGLPlugin()],
});
// ...