MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / liveMainWindow

Function liveMainWindow

apps/desktop/src/main/index.ts:88–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86const PRELOAD_PATH = fileURLToPath(new URL("../preload/index.js", import.meta.url));
87
88const liveMainWindow = (): BrowserWindow | null => {
89 const window = mainWindow;
90 if (!window) return null;
91 if (window.isDestroyed()) {
92 mainWindow = null;
93 return null;
94 }
95 return window;
96};
97
98const destroyWindow = (window: BrowserWindow) => {
99 if (mainWindow === window) mainWindow = null;

Callers 5

focusMainWindowFunction · 0.85
armSupervisedMonitorFunction · 0.85
restartSidecarAndReloadFunction · 0.85
registerIpcHandlersFunction · 0.85
bootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected