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

Function loadWindowUrl

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

Source from the content-addressed store, hash-verified

175 * rejection handler; log it instead, quietly when it is teardown noise.
176 */
177const loadWindowUrl = async (window: BrowserWindow, url: string): Promise<void> => {
178 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: Electron navigation rejects; there is no caller left to surface it to
179 try {
180 await window.loadURL(url);
181 } catch (error) {
182 if (isTeardownNavigationError(error, window)) {
183 log.info("Navigation aborted while the window was closing");
184 return;
185 }
186 log.error("Failed to load window URL", error);
187 }
188};
189
190// The supervised daemon (and the desktop sidecar) own this data dir — the same
191// 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