Skip to content

Instantly share code, notes, and snippets.

@Xhamps
Created January 28, 2014 14:27
Show Gist options
  • Save Xhamps/8668650 to your computer and use it in GitHub Desktop.
Save Xhamps/8668650 to your computer and use it in GitHub Desktop.
Capture the path of app
function getPhoneGapPath(){
var path = window.location.pathname;
path = path.substr( path, path.length - 10 );
return 'file://' + path;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment