MCPcopy Index your code
hub / github.com/anomalyco/opencode / loadWindow

Function loadWindow

packages/desktop/src/main/windows.ts:294–303  ·  view source on GitHub ↗
(win: BrowserWindow, html: string)

Source from the content-addressed store, hash-verified

292}
293
294function loadWindow(win: BrowserWindow, html: string) {
295 const devUrl = process.env.ELECTRON_RENDERER_URL
296 if (devUrl) {
297 const url = new URL(html, devUrl)
298 void win.loadURL(url.toString())
299 return
300 }
301
302 void win.loadURL(`${rendererProtocol}://${rendererHost}/${html}`)
303}
304
305function wireWindowRecovery(win: BrowserWindow, name: string) {
306 let showing = false

Callers 1

createMainWindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected