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