On Fri, Sep 6, 2013 at 1:40 PM, Jesse MacFadyen <[email protected]>wrote:
>
> > If you can wait until tomorrow, I am planning on fixing this :)
> Apparently
> > there's a long-standing feature request somewhere to provide that info as
> > 'cordova.platform', and now that Device is an optional plugin, it makes a
> > lot more sense. I was lamenting earlier today that I had to do the same
> > userAgent check in one of our plugins, so I'm just going to take care of
> it.
> >
> > Ian
>
> Done yet?
>
No. :(
/me hangs head in shame
Still hoping to knock that off today; there is a workaround right now:
cordova.require('cordova/platform').id will return the platform that your
app is running on.
I just need to map that to cordova.platform, or something similar, I think.
Ian