Skip to content

Instantly share code, notes, and snippets.

@imansigupta
Created June 10, 2020 10:58
Show Gist options
  • Save imansigupta/f8b0c1677e98d222e8657083f3194716 to your computer and use it in GitHub Desktop.
Save imansigupta/f8b0c1677e98d222e8657083f3194716 to your computer and use it in GitHub Desktop.
a code snippet from main.js
const { app, BrowserWindow } = require('electron');
let mainWindow;
app.on('ready', () => {
mainWindow = new BrowserWindow({
width: 1536,
height: 900,
frame: true,
webPreferences: {
nodeIntegration: false
}
});
mainWindow.loadURL('file://' + __dirname + '/index.html');
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment