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

Function liveMainWindow

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

Source from the content-addressed store, hash-verified

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

Callers 8

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

Calls

no outgoing calls

Tested by

no test coverage detected