(url: string)
| 56 | ): void => { |
| 57 | let letGo = () => undefined; |
| 58 | const restore = (url: string) => { |
| 59 | letGo(); |
| 60 | if (url.split(/[?#]/)[0] === href) { |
| 61 | restoreScrollPosition(position); |
| 62 | } |
| 63 | }; |
| 64 | letGo = () => { |
| 65 | router.events.off('routeChangeComplete', restore); |
| 66 | router.events.off('routeChangeError', letGo); |
nothing calls this directly
no test coverage detected