返回 DeepSeek-Reasonix
transcript-layout-electron.cjs
根目录 / desktop / frontend / bench / transcript-layout-electron.cjs
1 const { app, BrowserWindow } = require("electron");
2 const path = require("node:path");
3
4 // A hidden, isolated native host exercises Chromium's real window/zoom path
5 // without activating or altering the developer's active desktop session.
6 app.setPath("userData", path.join(__dirname, "electron-profile"));
7 app.whenReady().then(async () => {
8 if (process.platform === "darwin") app.dock.hide();
9 const window = new BrowserWindow({
10 show: false, focusable: false, width: 1920, height: 1080, useContentSize: true,
11 webPreferences: { sandbox: true, contextIsolation: true, nodeIntegration: false, backgroundThrottling: false },
12 });
13 await window.loadURL(process.env.REASONIX_LAYOUT_URL);
14 });
15 app.on("window-all-closed", () => app.quit());
16
16 lines Plain Text