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

Function showStartupWindow

apps/desktop/src/main/index.ts:529–541  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

527};
528
529const showStartupWindow = async (): Promise<void> => {
530 const window = liveMainWindow() ?? createMainBrowserWindow({ show: true });
531 if (window.isMinimized()) window.restore();
532 if (!window.isVisible()) window.show();
533 window.focus();
534
535 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: local startup HTML should not block service startup
536 try {
537 await window.loadURL(htmlDataUrl(startupWindowHtml()));
538 } catch (error) {
539 log.warn("Failed to load startup window", error);
540 }
541};
542
543const showCrashScreen = (window: BrowserWindow | null = liveMainWindow()): void => {
544 if (!window) return;

Callers 1

bootFunction · 0.85

Calls 5

startupWindowHtmlFunction · 0.90
liveMainWindowFunction · 0.85
createMainBrowserWindowFunction · 0.85
htmlDataUrlFunction · 0.85
warnMethod · 0.80

Tested by

no test coverage detected