mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-27 19:20:47 +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 |