cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brion Vibber <br...@pobox.com>
Subject Re: Determining if "you're in cordova"
Date Mon, 03 Dec 2012 20:41:10 GMT
On Mon, Dec 3, 2012 at 11:40 AM, Max Ogden <max@maxogden.com> wrote:

> - I already do conditional loading of stylesheets and JS based on user
> agent. I think it would be super useful if there was a user agent
> equivalent for cordova so the code could decide what to do based on
> environment and not guesses based on href
>

We also like to tweak the user-agent with our application's name and
version to help track usage of the Wikipedia app's web API usage... a
standard way to append/prepend things into the User-Agent would be nicer
than hacking the AppDelegate / DroidGapApplication class every time we
update the project.

Having 'Cordova' in there by default would be... very handy.

-- brion

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message