Ensure dashboard activates terminal tab

This commit is contained in:
GitHub Copilot
2026-01-30 08:15:58 +00:00
parent 0e5a02ed23
commit 3c1953654a
+13 -3
View File
@@ -1162,9 +1162,19 @@ class LocalServer:
if (!tile || !tile.slug) return;
const url = `/?route_key=${{encodeURIComponent(tile.slug)}}`;
const target = `webterm-${{tile.slug}}`;
const win = window.open(url, target);
if (win && typeof win.focus === 'function') {{
win.focus();
let win = window.open(url, target);
if (!win) {{
window.location.href = url;
return;
}}
if (win.closed) {{
win = window.open(url, target);
}}
if (win) {{
if (typeof win.focus === 'function') {{
win.focus();
}}
win.location.href = url;
}} else {{
window.location.href = url;
}}