()
| 397 | } |
| 398 | |
| 399 | private getFragment(): string | undefined { |
| 400 | // In hash mode the URL fragment trails a second `#` (e.g. `#/path#anchor`); |
| 401 | // parse the routing portion to extract it. |
| 402 | const raw = this.useHash ? parsePath(window.location.hash.slice(1)).fragment : window.location.hash.slice(1); |
| 403 | return raw ? raw : undefined; |
| 404 | } |
| 405 | |
| 406 | /** |
| 407 | * Fires a best-effort scroll to the current URL fragment. The scroll bails |
no test coverage detected