Skip to content

Commit

Permalink
working
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmuhittin committed Mar 22, 2019
1 parent 667a1e4 commit 3116081
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/js/nova-scroll-top.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions resources/js/nova-scroll-top.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import animateScrollTo from 'animated-scroll-to';

Nova.booting((Vue, router) => {
Nova.booting((Vue, router) => {
router.beforeEach(function (to, from, next) {
setTimeout(() => {
animateScrollTo(0);
}, 100);
next();
});
router.beforeEach(function (to, from, next) {
setTimeout(() => {
animateScrollTo(0);
}, 100);
next();
});
});

0 comments on commit 3116081

Please sign in to comment.