()
| 527 | }; |
| 528 | |
| 529 | const 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 | |
| 543 | const showCrashScreen = (window: BrowserWindow | null = liveMainWindow()): void => { |
| 544 | if (!window) return; |
no test coverage detected