simoncck commited on
Commit
d531e6e
·
verified ·
1 Parent(s): bdd1e84

Update browser_automation_ui.html

Browse files
Files changed (1) hide show
  1. browser_automation_ui.html +5 -2
browser_automation_ui.html CHANGED
@@ -219,6 +219,9 @@
219
  function renderSessionList() {
220
  const ul = document.getElementById('sessionList');
221
  //if (!ul) return;
 
 
 
222
  ul.innerHTML = ""
223
  ul.innerHTML = sessions
224
  .map(
@@ -368,8 +371,8 @@
368
  if (sessionId) {
369
  currentSessionId = sessionId;
370
  document.getElementById('browserResp').textContent = JSON.stringify(out,null,2);
371
- sessions.push(sessionId);
372
- renderSessionList();
373
  await refreshSessions();
374
  checkStatus();
375
  }
 
219
  function renderSessionList() {
220
  const ul = document.getElementById('sessionList');
221
  //if (!ul) return;
222
+ sessions.forEach((s) => {
223
+ alert(s.session_id)
224
+ }
225
  ul.innerHTML = ""
226
  ul.innerHTML = sessions
227
  .map(
 
371
  if (sessionId) {
372
  currentSessionId = sessionId;
373
  document.getElementById('browserResp').textContent = JSON.stringify(out,null,2);
374
+ //sessions.push(sessionId);
375
+ //renderSessionList();
376
  await refreshSessions();
377
  checkStatus();
378
  }