(event)
| 558 | // IPC surface for the loading window (see preload.cjs). Guarded to that |
| 559 | // window's webContents so the main app window can never reach these. |
| 560 | function isLoadingWinEvent(event) { |
| 561 | return ( |
| 562 | loadingWin !== null && |
| 563 | !loadingWin.isDestroyed() && |
| 564 | event.sender === loadingWin.webContents |
| 565 | ); |
| 566 | } |
| 567 | |
| 568 | ipcMain.handle("boot-log:set-expanded", (event, expanded) => { |
| 569 | if (!isLoadingWinEvent(event)) return; |