MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / isLoadingWinEvent

Function isLoadingWinEvent

electron/main.mjs:560–566  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

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.
560function isLoadingWinEvent(event) {
561 return (
562 loadingWin !== null &&
563 !loadingWin.isDestroyed() &&
564 event.sender === loadingWin.webContents
565 );
566}
567
568ipcMain.handle("boot-log:set-expanded", (event, expanded) => {
569 if (!isLoadingWinEvent(event)) return;

Callers 1

main.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected