Home > puppeteer > Target > worker
If the target is not of type "service_worker" or "shared_worker", returns null.
"service_worker"
"shared_worker"
null
Signature:
worker(): Promise<WebWorker | null>;
Returns:
Promise<WebWorker | null>