Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Findeton committed Jul 19, 2024
1 parent ed51698 commit 3abf9ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dist/appCommon-v10.4.2.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist
var lastRefreshMs = 0;
return authmethod.refreshAuthToken = function(autheventid) {
var deferred = $q.defer(), jnow = Date.now();
if (jnow - lastRefreshMs < 1e3) return deferred.reject("ongoing refresh"), deferred.promise;
if (jnow - lastRefreshMs < 1e3) return console.log("ongoing refresh"), deferred.reject("ongoing refresh"),
deferred.promise;
lastRefreshMs = jnow;
var postfix = "_authevent_" + autheventid;
if ("hidden" === document.visibilityState) return $cookies.get("auth" + postfix) || $state.go("admin.logout"),
Expand Down

0 comments on commit 3abf9ae

Please sign in to comment.