yuntian-deng commited on
Commit
ba1597c
·
1 Parent(s): 68d39ea

Update static/index.html

Browse files
Files changed (1) hide show
  1. static/index.html +2 -2
static/index.html CHANGED
@@ -72,7 +72,7 @@
72
  console.error("Error sending heartbeat:", error);
73
  }
74
  }
75
- }, 15000); // Send heartbeat every 15 seconds
76
  }
77
 
78
  // Initial connection
@@ -120,7 +120,7 @@
120
  let x = event.clientX - rect.left;
121
  let y = event.clientY - rect.top;
122
 
123
- isProcessing = true;
124
  try {
125
  socket.send(JSON.stringify({
126
  "action_type": "left_click",
 
72
  console.error("Error sending heartbeat:", error);
73
  }
74
  }
75
+ }, 1000); // Send heartbeat every 15 seconds
76
  }
77
 
78
  // Initial connection
 
120
  let x = event.clientX - rect.left;
121
  let y = event.clientY - rect.top;
122
 
123
+ isProcessing = false;
124
  try {
125
  socket.send(JSON.stringify({
126
  "action_type": "left_click",