history.js icon indicating copy to clipboard operation
history.js copied to clipboard

Add back/forward button to the new state

Open melroy89 opened this issue 9 years ago • 0 comments

This change makes it possible to check if the statechange event is caused by the browser back & forward buttons. And can later be checked via the navigation variable:

var State = History.getState(); if(State.navigation) { // Back / forward button pressed }

melroy89 avatar Jan 27 '16 16:01 melroy89