MCPcopy Create free account
hub / github.com/codemistic/Web-Development / unregister

Function unregister

Dictionary-App/src/serviceWorkerRegistration.js:127–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125 }
126
127 export function unregister() {
128 if ('serviceWorker' in navigator) {
129 navigator.serviceWorker.ready
130 .then((registration) => {
131 registration.unregister();
132 })
133 .catch((error) => {
134 console.error(error.message);
135 });
136 }
137 }
138

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected