simoncck commited on
Commit
07285f4
·
verified ·
1 Parent(s): b51b775

Update browser_automation_ui.html

Browse files
Files changed (1) hide show
  1. browser_automation_ui.html +7 -6
browser_automation_ui.html CHANGED
@@ -148,12 +148,13 @@
148
 
149
  async function closeSession(id){
150
  if(!confirm(`Close session\n${id}?`))return;
151
- // try{
152
- // await apiPost('/browser/close', { session_id: id });log(`✖ closed ${id}`);if(id===currentSessionId){currentSessionId=null;document.getElementById('screenshot').src='';}
153
- // await refreshSessions();
154
- // }catch(e){
155
- // handleErr(e)
156
- // }
 
157
  }
158
 
159
  async function closeAllSessions(){
 
148
 
149
  async function closeSession(id){
150
  if(!confirm(`Close session\n${id}?`))return;
151
+ try{
152
+ await apiPost('/browser/close', { session_id: id });
153
+ // log(`✖ closed ${id}`);if(id===currentSessionId){currentSessionId=null;document.getElementById('screenshot').src='';}
154
+ // await refreshSessions();
155
+ }catch(e){
156
+ handleErr(e)
157
+ }
158
  }
159
 
160
  async function closeAllSessions(){