app postprocess is already run in getApp

This commit is contained in:
Johannes Zellner
2019-09-12 12:18:10 +02:00
parent 9e2ac31a08
commit fda8791d5a

View File

@@ -1453,7 +1453,8 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype._appPostProcess = function (app) { // calculate the icon paths
Client.prototype._appPostProcess = function (app) {
// calculate the icon paths
app.iconUrl = app.iconUrl ? (this.apiOrigin + app.iconUrl + '?access_token=' + token + '&' + String(Math.random()).slice(2)) : null;
// amend the post install confirm state
@@ -1492,8 +1493,6 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
var tmp = {};
angular.copy(app, tmp);
this._appPostProcess(tmp);
// only replace if the app is already known
if (found !== -1 && this._installedApps[found].fqdn === tmp.fqdn) { // app location has not changed
angular.copy(tmp, this._installedApps[found]);