mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-28 19:38:13 +00:00
Bug 921226 - Log during app install in App Manager. r=ochameau
This commit is contained in:
parent
18a7b40ae9
commit
97c0516b1a
@ -208,8 +208,10 @@ let UI = {
|
||||
},
|
||||
|
||||
install: function(project) {
|
||||
this.connection.log("Installing the " + project.manifest.name + " app...");
|
||||
let installPromise;
|
||||
if (project.type == "packaged") {
|
||||
return installPackaged(this.connection.client, this.listTabsResponse.webappsActor, project.location, project.packagedAppOrigin)
|
||||
installPromise = installPackaged(this.connection.client, this.listTabsResponse.webappsActor, project.location, project.packagedAppOrigin)
|
||||
.then(({ appId }) => {
|
||||
// If the packaged app specified a custom origin override,
|
||||
// we need to update the local project origin
|
||||
@ -225,8 +227,16 @@ let UI = {
|
||||
origin: origin.spec,
|
||||
manifestURL: project.location
|
||||
};
|
||||
return installHosted(this.connection.client, this.listTabsResponse.webappsActor, appId, metadata, project.manifest);
|
||||
installPromise = installHosted(this.connection.client, this.listTabsResponse.webappsActor, appId, metadata, project.manifest);
|
||||
}
|
||||
|
||||
installPromise.then(() => {
|
||||
this.connection.log("Install completed.");
|
||||
}, () => {
|
||||
this.connection.log("Install failed.");
|
||||
});
|
||||
|
||||
return installPromise;
|
||||
},
|
||||
|
||||
start: function(project) {
|
||||
|
Loading…
Reference in New Issue
Block a user