Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const electron = require('electron');
  2. const app = electron.app;
  3.  
  4. app.on('ready', () => {
  5.    createWindow();
  6. });
  7.  
  8. app.on('window-all-closed', function() {
  9.    app.quit();
  10. });
  11.  
  12. function createWindow() {
  13.     appWindow = new BrowserWindow({
  14.         width: 300,
  15.         height: 300
  16.     });
  17. };
  18.  
  19. const BrowserWindow = electron.BrowserWindow;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement