(conn: SidecarConnection)
| 148 | }; |
| 149 | |
| 150 | const webUrlForConnection = (conn: SidecarConnection): string => { |
| 151 | const url = new URL(conn.baseUrl); |
| 152 | if (conn.authToken) url.searchParams.set("_token", conn.authToken); |
| 153 | url.searchParams.set("_executor_desktop_launch", String(process.pid)); |
| 154 | return url.toString(); |
| 155 | }; |
| 156 | |
| 157 | const htmlDataUrl = (html: string): string => |
| 158 | `data:text/html;charset=utf-8,${encodeURIComponent(html)}`; |
no test coverage detected