website/description is optional for dev apps
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user