Skip to content

Commit

Permalink
Merge pull request pinpoint-apm#1279 from denzelsN/master
Browse files Browse the repository at this point in the history
Add 302 redirect code.
  • Loading branch information
denzelsN committed Dec 1, 2015
2 parents 0597a05 + 2ceb3c6 commit 1c33a6f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions web/src/main/webapp/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,14 @@ pinpointApp.config(['$routeProvider', '$locationProvider', '$modalProvider', fun

pinpointApp.value("globalConfig", {});

pinpointApp.run([ '$rootScope', '$timeout', '$modal', '$location', '$cookies', '$interval', '$http', 'globalConfig',
function ($rootScope, $timeout, $modal, $location, $cookies, $interval, $http, globalConfig) {
pinpointApp.run([ '$rootScope', '$window', '$timeout', '$modal', '$location', '$cookies', '$interval', '$http', 'globalConfig',
function ($rootScope, $window, $timeout, $modal, $location, $cookies, $interval, $http, globalConfig) {
$http.get('/configuration.pinpoint').then(function(result) {
if ( result.data.errorCode == 302 ) {
$window.location = result.data.redirect;
return;
}

for( var p in result.data ) {
globalConfig[p] = result.data[p];
}
Expand Down

0 comments on commit 1c33a6f

Please sign in to comment.