Fixes logic to not be based on length, but on position
This commit is contained in:
parent
2c9c00ab8d
commit
275f7928ea
|
@ -726,7 +726,7 @@ func (c *client) ReloadPage() error {
|
||||||
return fmt.Errorf("There is no page to reload")
|
return fmt.Errorf("There is no page to reload")
|
||||||
}
|
}
|
||||||
url := c.PageState.History[c.PageState.Position].Location.Full
|
url := c.PageState.History[c.PageState.Position].Location.Full
|
||||||
if c.PageState.Length == 1 {
|
if c.PageState.Position == 0 {
|
||||||
c.PageState.Position--
|
c.PageState.Position--
|
||||||
} else {
|
} else {
|
||||||
err := c.PageState.NavigateHistory(-1)
|
err := c.PageState.NavigateHistory(-1)
|
||||||
|
|
Loading…
Reference in New Issue