Emit 'page-title-updated' as javascript event for window.
This commit is contained in:
parent
1309d04ca7
commit
d3e4db7ba3
9 changed files with 82 additions and 4 deletions
|
@ -6,4 +6,9 @@ var mainWindow = null;
|
|||
atom.browserMainParts.preMainMessageLoopRun = function() {
|
||||
mainWindow = new Window({ width: 800, height: 600 });
|
||||
mainWindow.loadURL('file://' + __dirname + '/index.html');
|
||||
mainWindow.on('page-title-updated', function(event, title) {
|
||||
event.preventDefault();
|
||||
|
||||
this.title = 'Atom Shell - ' + title;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue