puppeteer/new-docs/puppeteer.target.worker.md
Alex Rudenko 7025f1c5ea
docs(new): migrate Target to TSDoc (#6067)
* docs(new): migrate Target to TSDoc

Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
2020-06-22 14:57:04 +02:00

516 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>