()
| 200 | let current = $state<RouterLocation>(initial); |
| 201 | |
| 202 | function sync(): void { |
| 203 | const next = parseHash(location.hash); |
| 204 | if (next.raw !== current.raw) current = next; |
| 205 | } |
| 206 | |
| 207 | if (typeof window !== 'undefined') { |
| 208 | window.addEventListener('hashchange', sync); |
nothing calls this directly
no test coverage detected