Answers for "electron.js"

5

electron quickstart guide

const { app, BrowserWindow } = require('electron')

function createWindow () {
  const win = new BrowserWindow({
    width: 800,
    height: 600,
    webPreferences: {
      nodeIntegration: true
    }
  })

  win.loadFile('index.html')
  win.webContents.openDevTools()
}

app.whenReady().then(createWindow)

app.on('window-all-closed', () => {
  if (process.platform !== 'darwin') {
    app.quit()
  }
})

app.on('activate', () => {
  if (BrowserWindow.getAllWindows().length === 0) {
    createWindow()
  }
})
Posted by: Guest on November-24-2020
2

electron

$ npm i -D electron@latest
# Electron   11.0.1
# Node       12.18.3
# Chromium   87.0.4280.60
Posted by: Guest on November-18-2020
0

electron js

$ npm i -D electron@latest
# Electron   10.1.3
# Node       12.16.3
# Chromium   85.0.4183.121
Posted by: Guest on October-05-2020
-1

js electron setup

npm install electron --save-devCopy
Posted by: Guest on November-03-2020
0

electron js

$ npm i -D electron@latest
# Electron   11.2.3
# Node       12.18.3
# Chromium   87.0.4280.141
Posted by: Guest on February-16-2021
0

electron js

$ npm i -D electron@beta
# Electron   11.0.0-beta.9
# Node       12.18.3
# Chromium   87.0.4251.1
Posted by: Guest on October-05-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language