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

Function showCrashScreen

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

Source from the content-addressed store, hash-verified

581};
582
583const showCrashScreen = (
584 window: BrowserWindow | null = liveMainWindow(),
585 options: { readonly reported: boolean } = { reported: errorReportingEnabled },
586): void => {
587 if (!window) return;
588 const html = sidecarCrashHtml({ reported: options.reported && errorReportingEnabled });
589 void loadWindowUrl(window, htmlDataUrl(html));
590};
591
592const createWindow = async (conn: SidecarConnection) => {
593 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