make the name API work

currently this only works for the main webadmin (and not for
nakeddomain, error etc) but that's fine.
This commit is contained in:
Girish Ramakrishnan
2016-06-02 13:17:01 -07:00
parent 28b3550214
commit 54ead09aac
2 changed files with 6 additions and 1 deletions

View File

@@ -208,6 +208,10 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
if (config.progress.update && config.progress.update.percent !== -1) {
window.location.href = '/update.html';
}
if (config.cloudronName) {
document.title = config.cloudronName;
}
});