INNER CODE UNIT · JavaScript

createWindow

vasani-arpit/Social-Media-Automation · main.js:4

function createWindow() {
    // Create the browser window.
    mainWindow = new BrowserWindow({
        width: 1300,
        height: 700
    })

    // and load the index.html of the app.
    mainWindow.loadFile(__dirname + '/index.html')

    // Open the DevTools.
    mainWindow.webContents.openDevTools()

    // Emitted when the window is closed.
    mainWindow.on('closed', function () {
        // Dereference the window object, usually you would store windows
        // in an array if your app supports multi windows, this is the time
        // when you should delete the corresponding element.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…