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

Function showCrashScreen

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

Source from the content-addressed store, hash-verified

574};
575
576const 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
585const createWindow = async (conn: SidecarConnection) => {
586 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