mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-29 20:21:25 +00:00
7231d5a829
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. |
||
---|---|---|
.. | ||
connection.go | ||
hub.go | ||
livereload.go |