mozilla

Compare Revisions

FAQs about apps

Change Revisions

Revision 435997:

Revision 435997 by markg on

Revision 437699:

Revision 437699 by markg on

Title:
FAQs about apps
FAQs about apps
Slug:
Web/Apps/FAQs/About_apps
Web/Apps/FAQs/About_apps
Tags:
"Apps"
"Apps"
Content:

Revision 435997
Revision 437699
n167      One way to do this is to use the <a href="/en-US/docs/Web/An167      There are a few ways you can check this:
>PI/Apps.getSelf"><code>navigator.mozApps.getSelf()</code></a> fun 
>ction. 
t169    <p>t169    <ul>
170      <li>Use the&nbsp;<a href="/en-US/docs/Web/API/Apps.checkIns
 >talled" title="/en-US/docs/Web/API/Apps.checkInstalled"><code>nav
 >igator.mozApps.checkInstalled()</code></a> function.
171      </li>
172      <li>Use the <a href="/en-US/docs/Web/API/Apps.getSelf"><cod
 >e>navigator.mozApps.getSelf()</code></a> function.
173      </li>
174      <li>Use <code>window.locationbar.visible</code>. See&nbsp;<
 >a href="https://developer.mozilla.org/en-US/docs/Web/Apps/Tutoria
 >ls/General/App_code#Navigation" style="line-height: 22px;" title=
 >"https://developer.mozilla.org/en-US/docs/Web/Apps/Tutorials/Gene
 >ral/App_code#Navigation">Navigation</a>.
175      </li>
170      To detect if the app is running in Firefox OS, you can use 176      <li>To detect if the app is running in Firefox OS, you can 
>code like this:>use code like this:&nbsp;<br>
171    </p>
172    <p>
173      <a href="https://github.com/mozilla/zamboni/blob/master/med177        <a href="https://github.com/mozilla/zamboni/blob/master/m
>ia/js/mkt/capabilities.js#L64">https://github.com/mozilla/zamboni>edia/js/mkt/capabilities.js#L64">https://github.com/mozilla/zambo
>/blob/master/media/js/mkt/capabilities.js#L64</a>>ni/blob/master/media/js/mkt/capabilities.js#L64</a>
178      </li>
174    </p>179    </ul>
175    <p>
176      See also <a href="https://developer.mozilla.org/en-US/docs/
>Web/Apps/Tutorials/General/App_code#Navigation" title="https://de 
>veloper.mozilla.org/en-US/docs/Web/Apps/Tutorials/General/App_cod 
>e#Navigation">Navigation</a> for another way to detect this. 
177    </p>

Back to History