(
window: BrowserWindow | null = liveMainWindow(),
options: { readonly reported: boolean } = { reported: errorReportingEnabled },
)
| 574 | }; |
| 575 | |
| 576 | const showCrashScreen = ( |
| 577 | window: BrowserWindow | null = liveMainWindow(), |
| 578 | options: { readonly reported: boolean } = { reported: errorReportingEnabled }, |
| 579 | ): void => { |
| 580 | if (!window) return; |
| 581 | const html = sidecarCrashHtml({ reported: options.reported && errorReportingEnabled }); |
| 582 | void loadWindowUrl(window, htmlDataUrl(html)); |
| 583 | }; |
| 584 | |
| 585 | const createWindow = async (conn: SidecarConnection) => { |
| 586 | installBearerAuthHeader(conn.baseUrl, conn.authToken); |
no test coverage detected