Skip to content

Instantly share code, notes, and snippets.

@ngokevin
Created August 23, 2013 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngokevin/6322285 to your computer and use it in GitHub Desktop.
Save ngokevin/6322285 to your computer and use it in GitHub Desktop.
on('click', '.install-or-launch', utils._pd(function() {
if (capabilities.firefoxOS) {
// Use WebActivities to launch the preloaded Marketplace.
// TODO: declare web activity on Marketplace's packaged manifest.
var act = new MozActivity({
name: 'marketplace-category',
data: {slug: 'all'}
});
act.onerror = function() {
console.log(this.error.name);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment