Wireless Army
This is a blog / tips and tricks website for web developers and security researchers.
follow us in feedly


make your app auto install on firefox os
by admin
 at 2016-10-02 16:10:00.

if you make a web app and you want to it to install automatically on firefox os or firefox browser, first make the manifest.webapp (tutorial at developer.mozilla.org) then just add this several lines to your index.html page

<script type="text/javascript">
if ($.browser.mozilla) {
navigator.mozApps.install(location.href + 'manifest.webapp');
}
</script>