From 275f7928eafd4392b0d1fb04c662662ff01ace7e Mon Sep 17 00:00:00 2001 From: sloumdrone Date: Sat, 7 Dec 2019 22:20:33 -0800 Subject: [PATCH] Fixes logic to not be based on length, but on position --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 9eb1962..dcdd8bc 100644 --- a/client.go +++ b/client.go @@ -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)