Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
fix app install (bug 744999)
Browse files Browse the repository at this point in the history
  • Loading branch information
cvan committed Apr 12, 2012
1 parent c357d4f commit 30a81f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion media/js/mkt/apps.js
Expand Up @@ -42,7 +42,7 @@ exports.install = function(product, opt) {
$def = $.Deferred();
/* Try and install the app. */
if (manifestUrl && opt.navigator.mozApps && opt.navigator.mozApps.install) {
var installRequest = opt.navigator.mozApps.install(manifestUrl, opt);
var installRequest = opt.navigator.mozApps.install(manifestUrl, opt.data);
installRequest.onsuccess = function() {
$def.resolve(product);
};
Expand Down
2 changes: 1 addition & 1 deletion media/js/mkt/install.js
Expand Up @@ -48,7 +48,7 @@
$(window).trigger('app_install_start', product);
$.post(product.recordUrl).success(function(response) {
if (response.receipt) {
data.receipts = [response.receipt];
data['data'] = {'receipts': [response.receipt]};
}
$.when(apps.install(product, data))
.done(installSuccess)
Expand Down

0 comments on commit 30a81f9

Please sign in to comment.