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

Function loadWindowUrl

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

Source from the content-addressed store, hash-verified

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