Ensure the avatar is also based on the apiOrigin

This commit is contained in:
Johannes Zellner
2016-01-18 16:35:25 +01:00
parent bb6b61d810
commit e61498c3b6
2 changed files with 3 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
$scope.initialized = false;
$scope.user = Client.getUserInfo();
$scope.installedApps = Client.getInstalledApps();
$scope.cloudronAvatar = Client.apiOrigin + '/api/v1/cloudron/avatar';
$scope.config = {};
$scope.update = {
@@ -82,6 +83,7 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
window.location.reload(true);
}
Client.refreshUserInfo(function (error, result) {
if (error) return $scope.error(error);