On Mar 23, 2013, at 3:11 AM, Nikos Roussos <[email protected]> 
wrote:

> On Fri, 2013-03-22 at 19:10 -0500, Kumar McMillan wrote:
>> On Mar 22, 2013, at 2:48 PM, Nikos Roussos <[email protected]> 
>> wrote:
>> 
>>> HI,
>>> 
>>> Is there any easy way for detecting if my app is running on Firefox OS
>>> or Desktop?
>> 
>> What are you trying to accomplish, exactly?
> 
> I want to provide some sharing options for content displayed in my app.
> 
> When on Desktop I'll have to provide to provide certain options (email,
> twitter, facebook, etc), but when the app runs on Firefox OS it should
> just utilize Web Activities to share.

Ah, ok. In that case you'd probably want to test for presence of the web 
activity API. It will be coming soon to desktop! :) Here's an article on how to 
detect for specific features by object without locking yourself into platforms 
http://diveintohtml5.info/detect.html

> 
> _______________________________________________
> dev-webapps mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-webapps

_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps

Reply via email to