Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/mod.ts>Target#worker

Headless Chrome Deno API
Latest
method Target.prototype.worker
Re-export
import { Target } from "https://deno.land/x/pptr@1.2.0/mod.ts";

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

Returns

Promise<WebWorker | null>