Add Window.url API.
This commit is contained in:
parent
d3e4db7ba3
commit
53dd742632
4 changed files with 25 additions and 5 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue