KEYCLOAK-726 Downloading a OAuth client installation file results on wrong JSON

This commit is contained in:
Stian Thorgersen 2014-10-29 09:12:14 +01:00
parent 5e8ca5a140
commit 3b23101365

View file

@ -282,7 +282,7 @@ module.controller('OAuthClientInstallationCtrl', function($scope, realm, install
$scope.installation = installation;
$scope.download = function() {
saveAs(new Blob([$scope.installation], { type: $scope.type }), 'keycloak.json');
saveAs(new Blob([angular.toJson($scope.installation, true)], { type: 'application/json' }), 'keycloak.json');
}
});