Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

registerServiceWorker

import { registerServiceWorker } from "https://raw.githubusercontent.com/Hatscat/MetavaScript/main/index.ts";

helper to generate the function to register your service worker

@example
// returns "navigator.serviceWorker?.register('/sw.js')"
registerServiceWorker()
function registerServiceWorker(path?): string;
§
registerServiceWorker(path?): string
[src]

§Parameters

§
path? optional
[src]

§Return Type

§
string
[src]