()
| 566 | }; |
| 567 | |
| 568 | const showStartupWindow = async (): Promise<void> => { |
| 569 | const window = liveMainWindow() ?? createMainBrowserWindow({ show: true }); |
| 570 | if (window.isMinimized()) window.restore(); |
| 571 | if (!window.isVisible()) window.show(); |
| 572 | window.focus(); |
| 573 | |
| 574 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: local startup HTML should not block service startup |
| 575 | try { |
| 576 | await window.loadURL(htmlDataUrl(startupWindowHtml())); |
| 577 | } catch (error) { |
| 578 | log.warn("Failed to load startup window", error); |
| 579 | } |
| 580 | }; |
| 581 | |
| 582 | const showCrashScreen = ( |
| 583 | window: BrowserWindow | null = liveMainWindow(), |
no test coverage detected