Spaces:
No application file
No application file
Update browser_automation_ui.html
Browse files
browser_automation_ui.html
CHANGED
|
@@ -378,12 +378,15 @@
|
|
| 378 |
sessionId = data.session_id;
|
| 379 |
currentSessionId = data.session_id;
|
| 380 |
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
|
|
|
|
|
|
|
|
|
| 384 |
|
| 385 |
// Refresh list and auto‑highlight
|
| 386 |
-
await refreshSessions();
|
| 387 |
} catch (err) {
|
| 388 |
alert(err.message || err);
|
| 389 |
}
|
|
|
|
| 378 |
sessionId = data.session_id;
|
| 379 |
currentSessionId = data.session_id;
|
| 380 |
|
| 381 |
+
if (sessionId) {
|
| 382 |
+
sessions.push(resp.session_id);
|
| 383 |
+
renderSessionList();
|
| 384 |
+
showToast(`Launched browser: ${resp.session_id.substring(0, 8)}…`, 'success');
|
| 385 |
+
await refreshSessions();
|
| 386 |
+
}
|
| 387 |
|
| 388 |
// Refresh list and auto‑highlight
|
| 389 |
+
//await refreshSessions();
|
| 390 |
} catch (err) {
|
| 391 |
alert(err.message || err);
|
| 392 |
}
|