Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
livereload: Maintain the scroll position if possible
This fixes #3824: when the current pathname is the same as the one to be loaded, just call location.reload() so that the current scroll position can be preserved, instead of assigning to location.href, which will cause the scroll position to be lost.
- Loading branch information