()
| 120 | } |
| 121 | |
| 122 | export function unregister() { |
| 123 | if ('serviceWorker' in navigator) { |
| 124 | navigator.serviceWorker.ready |
| 125 | .then((registration) => { |
| 126 | registration.unregister() |
| 127 | }) |
| 128 | .catch((error) => { |
| 129 | console.error(error.message) |
| 130 | }) |
| 131 | } |
| 132 | } |
nothing calls this directly
no test coverage detected