puppeteer/website/versioned_docs/version-9.1.1/puppeteer.target.worker.md
2021-08-10 11:09:48 +01:00

483 B

Home > puppeteer > Target > worker

Target.worker() method

If the target is not of type "service_worker" or "shared_worker", returns null.

Signature:

worker(): Promise<WebWorker | null>;

Returns:

Promise<WebWorker | null>