RedactX / src /electron /main.js
GitHub Actions
Deploy from GitHub
ac4a6d6
Raw
History Blame Contribute Delete
319 Bytes
import { app, BrowserWindow } from 'electron';
import path from 'path'
app.on('ready', () => {
const mainWindow = new BrowserWindow({ webPreferences: {
nodeIntegration: true,
contextIsolation: false,
},});
mainWindow.loadFile(path.join(app.getAppPath(),'/dist-react/index.html'));
})