Emit 'page-title-updated' as javascript event for window.

This commit is contained in:
Cheng Zhao 2013-04-18 23:50:47 +08:00
parent 1309d04ca7
commit d3e4db7ba3
9 changed files with 82 additions and 4 deletions

View file

@ -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;
});
}