MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / initProxy

Function initProxy

apps/desktop/main/network/proxy.ts:316–325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

314 * 应用启动时调用,加载并应用代理配置
315 */
316export function initProxy(): void {
317 // 延迟执行,确保 app ready
318 if (app.isReady()) {
319 void applyProxyToSession()
320 } else {
321 app.whenReady().then(() => {
322 void applyProxyToSession()
323 })
324 }
325}

Callers 1

initMethod · 0.90

Calls 1

applyProxyToSessionFunction · 0.85

Tested by

no test coverage detected