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