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

Function loadWindowUrl

apps/desktop/src/main/index.ts:171–182  ·  view source on GitHub ↗
(window: BrowserWindow, url: string)

Source from the content-addressed store, hash-verified

169 * rejection handler; log it instead, quietly when it is teardown noise.
170 */
171const loadWindowUrl = async (window: BrowserWindow, url: string): Promise<void> => {
172 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: Electron navigation rejects; there is no caller left to surface it to
173 try {
174 await window.loadURL(url);
175 } catch (error) {
176 if (isTeardownNavigationError(error, window)) {
177 log.info("Navigation aborted while the window was closing");
178 return;
179 }
180 log.error("Failed to load window URL", error);
181 }
182};
183
184// The supervised daemon (and the desktop sidecar) own this data dir — the same
185// path the CLI's `executor web`/daemon uses, so desktop and CLI share state.

Callers 2

armSupervisedMonitorFunction · 0.85
showCrashScreenFunction · 0.85

Calls 3

errorMethod · 0.80
infoMethod · 0.65

Tested by

no test coverage detected