Created
April 24, 2014 18:03
-
-
Save codearachnid/11263786 to your computer and use it in GitHub Desktop.
A quick way to get the local file's url (used on phonegap)
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
var tempElement = document.createElement("a"); | |
tempElement.setAttribute("href", "."); | |
var deviceBaseURL = tempElement.href; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment