diff --git a/frontend/src/js/app.js b/frontend/src/js/app.js index 16a21e3..254d80b 100644 --- a/frontend/src/js/app.js +++ b/frontend/src/js/app.js @@ -604,9 +604,11 @@ */ selectBroadcastTargets() { const { createElement, escapeHtml } = window.NexusTerminal; - const sessions = this.state.getAllSessions().filter( - (s) => s.state === "connected" && s.id !== this.state.activeSessionId, - ); + const sessions = this.state + .getAllSessions() + .filter( + (s) => s.state === "connected" && s.id !== this.state.activeSessionId, + ); if (sessions.length === 0) { this.notifications.error("No other connected sessions to broadcast to"); @@ -620,8 +622,13 @@ let listHtml = ""; for (const s of sessions) { const profile = this.state.getProfile(s.profileId); - const label = profile ? (profile.displayName || profile.host) : s.id.substring(0, 8); - const checked = currentTargets.size === 0 || currentTargets.has(s.id) ? "checked" : ""; + const label = profile + ? profile.displayName || profile.host + : s.id.substring(0, 8); + const checked = + currentTargets.size === 0 || currentTargets.has(s.id) + ? "checked" + : ""; listHtml += `