()
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected