(window: BrowserWindow | null = liveMainWindow())
| 541 | }; |
| 542 | |
| 543 | const showCrashScreen = (window: BrowserWindow | null = liveMainWindow()): void => { |
| 544 | if (!window) return; |
| 545 | const html = sidecarCrashHtml({ reported: errorReportingEnabled }); |
| 546 | void window.loadURL(htmlDataUrl(html)); |
| 547 | }; |
| 548 | |
| 549 | const createWindow = async (conn: SidecarConnection) => { |
| 550 | installBearerAuthHeader(conn.baseUrl, conn.authToken); |
no test coverage detected