INNER CODE UNIT · TypeScript

createWindow

BlockRunAI/ClawRouter · apps/desktop/electron/main.ts:24

function createWindow() {
  window = new BrowserWindow({
    width: 1180,
    height: 760,
    minWidth: 920,
    minHeight: 620,
    titleBarStyle: process.platform === "darwin" ? "hiddenInset" : "default",
    backgroundColor: nativeTheme.shouldUseDarkColors ? "#0a0a0a" : "#f4f4f3",
    show: true,
    webPreferences: {
      preload: join(__dirname, "preload.cjs"),
      contextIsolation: true,
      nodeIntegration: false,
      sandbox: true,
    },
  });
  window.webContents.on("did-fail-load", (_event, code, description, url) => {
    console.error("ClawRouter renderer failed to load", { code, description, url });

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…