Created
January 28, 2014 14:27
-
-
Save Xhamps/8668650 to your computer and use it in GitHub Desktop.
Capture the path of app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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