Use JavaScript to open the main window.

This commit is contained in:
Cheng Zhao 2013-04-17 20:05:43 +08:00
parent b313d94a2f
commit 60528e53ee
11 changed files with 479 additions and 25 deletions

View file

@ -1,5 +1,8 @@
var atom = require('atom');
var Window = require('window');
var mainWindow = null;
atom.browserMainParts.preMainMessageLoopRun = function() {
console.log('Create new window');
mainWindow = new Window({ width: 800, height: 600 });
}