Javascript newbie, how to choose between window.URL.createObjectURL() and window.webkitURL.createObjectURL() based on browser
- by Rohith Raveendran
From the firefox developer website I know that firefox use
objectURL = window.URL.createObjectURL(file);
to get url of file type, but in chrome and other webkit browsers we have window.webkitURL.createObjectURL() for detecting url.
I don't know how to swap this functions based on browser engines, and I need it to be worked on both browsers (Chrome and firefox)
https://developer.mozilla.org/en/DOM/window.URL.createObjectURL