Skip to content

Commit 47e72f1

Browse files
committed
doubled the afk timeout to 4 seconds
1 parent 1c2b319 commit 47e72f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ $(document).keypress(function(event) {
11331133
currentKeypressCount = 0;
11341134
errorsPerSecond.push(currentErrorCount);
11351135
currentErrorCount = 0;
1136-
if(keypressPerSecond[time-1] == 0 && keypressPerSecond[time-2] == 0 && !afkDetected){
1136+
if(keypressPerSecond[time-1] == 0 && keypressPerSecond[time-2] == 0 && keypressPerSecond[time-3] == 0 && keypressPerSecond[time-4] == 0 && !afkDetected){
11371137
showNotification("AFK detected",3000);
11381138
afkDetected = true;
11391139
}

0 commit comments

Comments
 (0)