Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const electron = require('electron');
- const app = electron.app;
- const BrowserWindow = electron.BrowserWindow;
- // electron.crashReporter.start({
- // companyName: 'Developer'
- // });
- var mainWindow = null;
- setTimeout(function () {
- app.setName('a');
- }, 3000);
- app.on('window-all-closed', function() {
- if ('darwin' != process.platform) {
- app.quit();
- }
- });
- app.on('ready', function() {
- mainWindow = new BrowserWindow({width: 800, height: 600});
- mainWindow.loadURL('file://' + __dirname + '/index.html');
- mainWindow.webContents.openDevTools();
- mainWindow.on('closed', function () {
- mainWindow = null;
- });
- // require('devtron').install(app);
- process.title = 'a';
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement