INNER CODE UNIT · JavaScript

createWindow

Brbb/graphql-rover · main.js:9

function createWindow () {
  // Create the browser window.
  win = new BrowserWindow({width: 1200, height: 800, title: "GraphQL R", icon: path.join(__dirname,'img/logo.png')})

  // and load the index.html of the app.
  win.loadURL(url.format({
    pathname: path.join(__dirname, 'index.html'),
    protocol: 'file:',
    slashes: true
  }))

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

  // Emitted when the window is closed.
  win.on('closed', () => {
    // Dereference the window object, usually you would store windows
    // in an array if your app supports multi windows, this is the time

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…