Skip to content

Instantly share code, notes, and snippets.

@renanccastro
Created April 18, 2016 22:01
Show Gist options
  • Save renanccastro/d0f9de4e0da3052574345d68e57ae3e2 to your computer and use it in GitHub Desktop.
Save renanccastro/d0f9de4e0da3052574345d68e57ae3e2 to your computer and use it in GitHub Desktop.
var nav = window.navigator;
if( this.phonegapNavigationEnabled &&
nav &&
nav.app &&
nav.app.backHistory ){
nav.app.backHistory();
} else {
window.history.back();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment