Load gravatar image securely if needed
This commit is contained in:
@@ -90,7 +90,7 @@ function MainController($scope, $rootScope, $location, $routeParams, $timeout, $
|
||||
$timeout(function () {
|
||||
//this can be null if they time out
|
||||
if ($scope.user && $scope.user.emailHash) {
|
||||
$scope.avatar = "http://www.gravatar.com/avatar/" + $scope.user.emailHash + ".jpg?s=64&d=mm";
|
||||
$scope.avatar = "//www.gravatar.com/avatar/" + $scope.user.emailHash + ".jpg?s=64&d=mm";
|
||||
}
|
||||
});
|
||||
$("#avatar-img").fadeTo(1000, 1);
|
||||
@@ -105,4 +105,4 @@ function MainController($scope, $rootScope, $location, $routeParams, $timeout, $
|
||||
|
||||
|
||||
//register it
|
||||
angular.module('umbraco').controller("Umbraco.MainController", MainController);
|
||||
angular.module('umbraco').controller("Umbraco.MainController", MainController);
|
||||
|
||||
Reference in New Issue
Block a user