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