File tree 1 file changed +5
-5
lines changed
src/Umbraco.Web.UI.Client/src/common/services
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -65,17 +65,17 @@ angular.module('umbraco.services')
65
65
//countdown by 5 seconds since that is how long our timer is for.
66
66
currentUser . remainingAuthSeconds -= 5 ;
67
67
68
- //if there are more than 30 remaining seconds, recurse!
69
- if ( currentUser . remainingAuthSeconds > 30 ) {
68
+ //if there are more than 20 remaining seconds, recurse!
69
+ if ( currentUser . remainingAuthSeconds > 20 ) {
70
70
71
71
//we need to check when the last time the timeout was set from the server, if
72
- // it has been more than 30 seconds then we'll manually go and retrieve it from the
72
+ // it has been more than 20 seconds then we'll manually go and retrieve it from the
73
73
// server - this helps to keep our local countdown in check with the true timeout.
74
74
if ( lastServerTimeoutSet != null ) {
75
75
var now = new Date ( ) ;
76
76
var seconds = ( now . getTime ( ) - lastServerTimeoutSet . getTime ( ) ) / 1000 ;
77
77
78
- if ( seconds > 30 ) {
78
+ if ( seconds > 20 ) {
79
79
80
80
//first we'll set the lastServerTimeoutSet to null - this is so we don't get back in to this loop while we
81
81
// wait for a response from the server otherwise we'll be making double/triple/etc... calls while we wait.
@@ -116,7 +116,7 @@ angular.module('umbraco.services')
116
116
countdownUserTimeout ( ) ;
117
117
}
118
118
else {
119
- //we've got less than 30 seconds remaining so let's check the server
119
+ //we've got less than 20 seconds remaining so let's check the server
120
120
121
121
if ( lastServerTimeoutSet != null ) {
122
122
//first we'll set the lastServerTimeoutSet to null - this is so we don't get back in to this loop while we
You can’t perform that action at this time.
0 commit comments