fix avatar url for custom domains

This commit is contained in:
Girish Ramakrishnan
2015-11-04 18:15:39 -08:00
parent b232255170
commit 747786d0c8

View File

@@ -263,7 +263,7 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
Client.onReady(function () {
fetchBackups();
$scope.avatar.url = '//my-' + $scope.config.fqdn + '/api/v1/cloudron/avatar';
$scope.avatar.url = ($scope.config.isCustomDomain ? '//my.' : '//my-') + $scope.config.fqdn + '/api/v1/cloudron/avatar';
});
// setup all the dialog focus handling