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

Function liveMainWindow

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

Source from the content-addressed store, hash-verified

94const PRELOAD_PATH = fileURLToPath(new URL("../preload/index.js", import.meta.url));
95
96const liveMainWindow = (): BrowserWindow | null => {
97 const window = mainWindow;
98 if (!window) return null;
99 if (window.isDestroyed()) {
100 mainWindow = null;
101 return null;
102 }
103 return window;
104};
105
106const destroyWindow = (window: BrowserWindow) => {
107 if (mainWindow === window) mainWindow = null;

Callers 7

focusMainWindowFunction · 0.85
armSupervisedMonitorFunction · 0.85
showStartupWindowFunction · 0.85
showCrashScreenFunction · 0.85
createWindowFunction · 0.85
restartSidecarAndReloadFunction · 0.85
registerIpcHandlersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected