Skip to content

Instantly share code, notes, and snippets.

@dynamis
dynamis / launchapp.jp
Created August 18, 2015 09:06
Firefox OS で特定のアプリを起動する
// launch FM App
navigator.mozApps.mgmt.getAll().onsuccess = function() {
const appId = "app://fm.gaiamobile.org/manifest.webapp";
var urls = [];
var apps = [];
var targetApp = null;
this.result.forEach(function(app) {
urls.push(app.manifestURL);
apps.push(app);
if (app.manifestURL==appId) {