Skip to content

Commit

Permalink
STATISTIK-1211 Fixat en oändlig loop som kunde uppstå i IE11 om man f…
Browse files Browse the repository at this point in the history
…ortsatte att försöka öppna nya rapporter efter att användaren blivit utloggad. Lösning enligt diskussion här: angular/angular.js#1417
  • Loading branch information
fredrikengstrom committed Aug 17, 2015
1 parent 4965e6a commit 57d198f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions statistik-web/src/main/webapp/js/app/services/factories.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ angular.module('StatisticsApp').factory('statisticsData', ['$http', '$rootScope'
}
}).error(function (data, status, headers, config) {
if (status === 403) {
window.location.replace("#/login");
$location.path("/login");
}
if (status === 503) {
window.location.replace("#/serverbusy");
$location.path("/serverbusy");
}
failureCallback();
});
Expand Down

0 comments on commit 57d198f

Please sign in to comment.