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