Add Window.url API.

This commit is contained in:
Cheng Zhao 2013-04-19 00:06:10 +08:00
parent d3e4db7ba3
commit 53dd742632
4 changed files with 25 additions and 5 deletions

View file

@ -5,7 +5,8 @@ var mainWindow = null;
atom.browserMainParts.preMainMessageLoopRun = function() {
mainWindow = new Window({ width: 800, height: 600 });
mainWindow.loadURL('file://' + __dirname + '/index.html');
mainWindow.url = 'file://' + __dirname + '/index.html';
mainWindow.on('page-title-updated', function(event, title) {
event.preventDefault();