зеркало из https://github.com/mozilla/gecko-dev.git
Bug 921226 - Log during app install in App Manager. r=ochameau
This commit is contained in:
Родитель
18a7b40ae9
Коммит
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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче