How to use the nextron.createWindow function in nextron

To help you get started, we’ve selected a few nextron examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github saltyshiomix / nextron / examples / with-javascript / background.js View on Github external
app.on('ready', () => {
  const mainWindow = createWindow('main', {
    width: 1000,
    height: 600
  });

  mainWindow.loadURL(
    format({
      pathname: join(__dirname, 'home/index.html'),
      protocol: 'file:',
      slashes: true
    })
  );

  if (env.name === 'development') {
    mainWindow.openDevTools();
  }
});

nextron

⚡ NEXT.js + Electron ⚡

MIT
Latest version published 1 month ago

Package Health Score

84 / 100
Full package analysis