forked from tornadocash/classic-ui
10 lines
208 B
JavaScript
10 lines
208 B
JavaScript
const routerScrollBehavior = (to, from, savedPosition) => {
|
|
if (to.name === 'governance-id') {
|
|
return { x: 0, y: 0 }
|
|
}
|
|
|
|
return savedPosition || { x: 0, y: 0 }
|
|
}
|
|
|
|
export default routerScrollBehavior
|