UNPKG

static-browser-server

Version:

A simple service worker used for the static template in sandpack, allowing users to develop websites like they would locally in the browser.

6 lines (5 loc) 186 B
export function getWorkerInstance( registration: ServiceWorkerRegistration ): ServiceWorker | null { return registration.installing || registration.waiting || registration.active; }