title: How can I distinguish between a PhoneGap app and a native browser?
body: <p>To speed up development, our team has gotten into the habit of testing most of our phonegap implementation directly in Chrome (since it's almost all Javascript). But there's certain code that we want to run in the ondeviceready callback that Phonegap provides (or just on document.ready in the browser). How can we distinguish between the two situations if we want to call different code in both cases?</p>