mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-09-24 17:02:14 +00:00
806 B
806 B
sidebar_label
| sidebar_label |
|---|
| BrowserProvider.supports |
BrowserProvider.supports() method
Check if this provider supports the given browser/platform. Used for filtering before attempting downloads.
Can be synchronous for quick checks or asynchronous if version resolution/network requests are needed.
Signature
interface BrowserProvider {
supports(options: DownloadOptions): Promise<boolean> | boolean;
}
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
options |
Download options to check |
Returns:
Promise<boolean> | boolean
True if this provider supports the browser/platform combination