MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / createMainWindow

Function createMainWindow

desktop/main.mjs:350–385  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

348}
349
350async function createMainWindow() {
351 await ensureLauncherReady()
352 await loadProductMeta()
353 startLauncherHealthMonitor()
354
355 mainWindow = new BrowserWindow({
356 width: 1480,
357 height: 980,
358 minWidth: 1200,
359 minHeight: 760,
360 backgroundColor: '#F6F1E8',
361 show: false,
362 title: 'claw-code',
363 icon: iconPath,
364 autoHideMenuBar: true,
365 titleBarStyle: 'hidden',
366 titleBarOverlay: {
367 color: '#F7F4EC',
368 symbolColor: '#5C5247',
369 height: 36,
370 },
371 webPreferences: {
372 preload: preloadPath,
373 contextIsolation: true,
374 nodeIntegration: false,
375 sandbox: false,
376 },
377 })
378
379 mainWindow.once('ready-to-show', () => {
380 mainWindow?.show()
381 })
382
383 await mainWindow.loadURL(uiUrl)
384 buildApplicationMenu()
385}
386
387function registerIpc() {
388 ipcMain.handle('claw:desktop:get-bootstrap', async () => {

Callers 1

main.mjsFile · 0.85

Calls 4

ensureLauncherReadyFunction · 0.85
loadProductMetaFunction · 0.85
buildApplicationMenuFunction · 0.85

Tested by

no test coverage detected