[develop | DONE | FIXED]: smooth-scroll.ts: Accidental error by mistyping.
This commit is contained in:
parent
d3746b28d0
commit
8bcafd3026
|
@ -28,7 +28,7 @@ export class SmoothScroll {
|
||||||
if (this.interval) {
|
if (this.interval) {
|
||||||
clearInterval(this.interval);
|
clearInterval(this.interval);
|
||||||
}
|
}
|
||||||
const fragment = router.parseUrl(routerurl).fragment;
|
const fragment = router.parseUrl(router.url).fragment;
|
||||||
if (this.lastComponent !== this.currentComponent) {
|
if (this.lastComponent !== this.currentComponent) {
|
||||||
window.scrollTo({top: 0});
|
window.scrollTo({top: 0});
|
||||||
}
|
}
|
||||||
|
@ -78,4 +78,3 @@ export class SmoothScroll {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.
|
|
Loading…
Reference in New Issue