simoncck commited on
Commit
6214c9a
·
verified ·
1 Parent(s): aa5ba46

Update browser_automation_ui.html

Browse files
Files changed (1) hide show
  1. browser_automation_ui.html +16 -16
browser_automation_ui.html CHANGED
@@ -125,7 +125,7 @@
125
  <button class="btn btn-secondary" onclick="refreshSessions()">
126
  <i class="lucide lucide-refresh-ccw"></i>Refresh
127
  </button>
128
- <button class="btn btn-danger" onclick="closeAllSessions()">
129
  <i class="lucide lucide-trash-2"></i>Close all sessions
130
  </button>
131
  </div>
@@ -206,22 +206,22 @@
206
  // --- Session Manager -----------------------------------------------------------
207
  let sessionId = null;
208
  let currentSessionId = null;
209
- const sessions = [];
210
 
211
- function renderSessionList() {
212
- const ul = document.getElementById('sessionList');
213
- //if (!ul) return;
214
- ul.innerHTML = ""
215
- ul.innerHTML = sessions
216
- .map(
217
- (id) => `
218
- <li style="display:flex;align-items:center;gap:8px;margin-bottom:4px;">
219
- <code style="flex:1;word-break:break-all;">${id}</code>
220
- <button class="btn btn-sm btn-danger" onclick="closeSession('${id}')">✖</button>
221
- </li>`
222
- )
223
- .join('');
224
- }
225
 
226
  async function listSessions() {
227
  const res = await api("/sessions");
 
125
  <button class="btn btn-secondary" onclick="refreshSessions()">
126
  <i class="lucide lucide-refresh-ccw"></i>Refresh
127
  </button>
128
+ <button class="btn btn-secondary" onclick="closeAllSessions()">
129
  <i class="lucide lucide-trash-2"></i>Close all sessions
130
  </button>
131
  </div>
 
206
  // --- Session Manager -----------------------------------------------------------
207
  let sessionId = null;
208
  let currentSessionId = null;
209
+ //const sessions = [];
210
 
211
+ // function renderSessionList() {
212
+ // const ul = document.getElementById('sessionList');
213
+ // //if (!ul) return;
214
+ // ul.innerHTML = ""
215
+ // ul.innerHTML = sessions
216
+ // .map(
217
+ // (id) => `
218
+ // <li style="display:flex;align-items:center;gap:8px;margin-bottom:4px;">
219
+ // <code style="flex:1;word-break:break-all;">${id}</code>
220
+ // <button class="btn btn-sm btn-danger" onclick="closeSession('${id}')">✖</button>
221
+ // </li>`
222
+ // )
223
+ // .join('');
224
+ // }
225
 
226
  async function listSessions() {
227
  const res = await api("/sessions");