mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-02 03:52:43 +00:00
(js) Improve CAS handling
This commit is contained in:
@@ -323,10 +323,13 @@
|
||||
$timeout(function() {
|
||||
var $http = $injector.get('$http');
|
||||
$http(rejection.config)
|
||||
.then(deferred.resolve, deferred.reject)
|
||||
.finally(function () {
|
||||
.then(function() {
|
||||
$window.recovered = true;
|
||||
$timeout(iframe.remove, 500); // Wait before removing the iframe
|
||||
$timeout(iframe.remove, 500);
|
||||
return deferred.resolve();
|
||||
}, function () {
|
||||
$window.recovered = true;
|
||||
return deferred.reject(); // Will reload the page
|
||||
});
|
||||
}, 500); // Wait before replaying the request
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user