Fix history navigation when <2 items in history
On startup, there will be one page in the history, not zero. Disable history navigation in such cases where the current page will just get selected again.
This commit is contained in:
parent
58b4667c31
commit
66169e641e
|
@ -76,7 +76,7 @@ HLoader {
|
|||
}
|
||||
|
||||
function moveThroughHistory(relativeMovement=1) {
|
||||
if (history.length === 0) return false
|
||||
if (history.length < 2) return false
|
||||
|
||||
// Going beyond oldest entry in history
|
||||
if (historyPosition + relativeMovement >= history.length) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user