MCPcopy Create free account
hub / github.com/6174/comflowyspace / createWindow

Function createWindow

apps/electron-package/hello-world.js:4–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2const { app, BrowserWindow } = require('electron');
3const path = require('path');
4function createWindow() {
5 // Create the browser window
6 const win = new BrowserWindow({
7 width: 800,
8 height: 600,
9 webPreferences: {
10 nodeIntegration: true,
11 },
12 });
13
14 // Load the index.html file
15 win.loadFile(path.resolve(__dirname, './layers/renderer/index.html'));
16 // Open the DevTools (remove this line in production)
17 win.webContents.openDevTools();
18}
19
20// Event handler for when the app is ready
21app.whenReady().then(createWindow);

Callers 1

hello-world.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected