MCPcopy
hub / github.com/sudheerj/reactjs-interview-questions / unregister

Function unregister

coding-exercise/src/serviceWorker.js:131–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected