Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. const electron = require('electron');
  2. const app = electron.app;
  3. const BrowserWindow = electron.BrowserWindow;
  4.  
  5. // electron.crashReporter.start({
  6. // companyName: 'Developer'
  7. // });
  8.  
  9. var mainWindow = null;
  10. setTimeout(function () {
  11. app.setName('a');
  12. }, 3000);
  13.  
  14. app.on('window-all-closed', function() {
  15. if ('darwin' != process.platform) {
  16. app.quit();
  17. }
  18. });
  19.  
  20. app.on('ready', function() {
  21. mainWindow = new BrowserWindow({width: 800, height: 600});
  22. mainWindow.loadURL('file://' + __dirname + '/index.html');
  23. mainWindow.webContents.openDevTools();
  24. mainWindow.on('closed', function () {
  25. mainWindow = null;
  26. });
  27. // require('devtron').install(app);
  28.  
  29. process.title = 'a';
  30. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement