@arkade-os/sdk Documentation - v0.4.0-next.8
    Preparing search index...

    Function setupServiceWorker

    • setupServiceWorker sets up the service worker.

      Parameters

      • pathOrOptions: string | SetupServiceWorkerOptions

        the path to the service worker script or setup options

      Returns Promise<ServiceWorker>

      if service workers are not supported or activation fails

      const worker = await setupServiceWorker("/service-worker.js");