electron/browser/default_app/main.js

12 lines
268 B
JavaScript

var atom = require('atom');
var Window = require('window');
var mainWindow = null;
atom.browserMainParts.preMainMessageLoopRun = function() {
mainWindow = new Window({ width: 800, height: 600 });
setTimeout(function() {
mainWindow.destroy();
}, 10000);
}