website/description is optional for dev apps

This commit is contained in:
Girish Ramakrishnan
2019-11-12 17:09:18 -08:00
parent 602244b53f
commit 24ef877bfe
2 changed files with 9 additions and 3 deletions

View File

@@ -1571,8 +1571,14 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
// amend the post install confirm state
app.pendingPostInstallConfirmation = !!localStorage['confirmPostInstall_' + app.id];
var tmp = app.manifest.description.match(/\<upstream\>(.*)\<\/upstream\>/i);
app.upstreamVersion = (tmp && tmp[1]) ? tmp[1] : '';
if (app.manifest.description) { // can be empty for dev apps
var tmp = app.manifest.description.match(/\<upstream\>(.*)\<\/upstream\>/i);
app.upstreamVersion = (tmp && tmp[1]) ? tmp[1] : '';
} else {
app.upstreamVersion = '';
}
if (!app.manifest.title) app.manifest.title = 'Untitled';
return app;
};