()
| 129 | } |
| 130 | |
| 131 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected