1
0
mirror of https://github.com/TeamPiped/Piped.git synced 2024-12-14 06:10:28 +05:30

Remove unnecessary scrollBehavior function in router.

This commit is contained in:
FireMasterK 2022-02-11 02:57:11 +00:00
parent a4224cea48
commit 275ccbc547
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD

View File

@ -75,9 +75,6 @@ const routes = [
const router = createRouter({
history: createWebHistory(),
routes,
scrollBehavior: function (_to, _from, savedPosition) {
return savedPosition ? savedPosition : window.scrollTo(0, 0);
},
});
export default router;