MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / showCrashScreen

Function showCrashScreen

apps/desktop/src/main/index.ts:582–589  ·  view source on GitHub ↗
(
  window: BrowserWindow | null = liveMainWindow(),
  options: { readonly reported: boolean } = { reported: errorReportingEnabled },
)

Source from the content-addressed store, hash-verified

580};
581
582const 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
591const createWindow = async (conn: SidecarConnection) => {
592 installBearerAuthHeader(conn.baseUrl, conn.authToken);

Callers 3

armSupervisedMonitorFunction · 0.85
bootFunction · 0.85

Calls 4

sidecarCrashHtmlFunction · 0.90
liveMainWindowFunction · 0.85
loadWindowUrlFunction · 0.85
htmlDataUrlFunction · 0.85

Tested by

no test coverage detected