(conn: SidecarConnection)
| 139 | }; |
| 140 | |
| 141 | const webUrlForConnection = (conn: SidecarConnection): string => { |
| 142 | const url = new URL(conn.baseUrl); |
| 143 | if (conn.authToken) url.searchParams.set("_token", conn.authToken); |
| 144 | url.searchParams.set("_executor_desktop_launch", String(process.pid)); |
| 145 | return url.toString(); |
| 146 | }; |
| 147 | |
| 148 | const htmlDataUrl = (html: string): string => |
| 149 | `data:text/html;charset=utf-8,${encodeURIComponent(html)}`; |
no test coverage detected