()
| 149 | } |
| 150 | |
| 151 | export function unregister () { |
| 152 | if ('serviceWorker' in navigator) { |
| 153 | navigator.serviceWorker.ready |
| 154 | .then(registration => { |
| 155 | registration.unregister() |
| 156 | }) |
| 157 | .catch(error => { |
| 158 | console.error(error.message) |
| 159 | }) |
| 160 | } |
| 161 | } |
nothing calls this directly
no test coverage detected