Fixes logic to not be based on length, but on position

This commit is contained in:
sloumdrone 2019-12-07 22:20:33 -08:00
parent 2c9c00ab8d
commit 275f7928ea
1 changed files with 1 additions and 1 deletions

View File

@ -726,7 +726,7 @@ func (c *client) ReloadPage() error {
return fmt.Errorf("There is no page to reload")
}
url := c.PageState.History[c.PageState.Position].Location.Full
if c.PageState.Length == 1 {
if c.PageState.Position == 0 {
c.PageState.Position--
} else {
err := c.PageState.NavigateHistory(-1)