Skip to content

Commit

Permalink
update readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Benvie committed Jul 31, 2012
1 parent 8f964cb commit 3fad901
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,20 @@ var window = app.createWindow({

window.on('create', function(){
console.log("Window Created");
this.frame.show();
this.frame.center();
window.frame.show();
window.frame.center();
});

window.on('ready', function(){
console.log("Window Ready");
this.require = require;
this.process = process;
this.module = module;
this.console.log('process', process);
window.require = require;
window.process = process;
window.module = module;
window.addEventListener('keydown', function(e){
if (e.keyIdentifier === 'F12') {
window.frame.openDevTools();
}
});
});

window.on('close', function(){
Expand Down

0 comments on commit 3fad901

Please sign in to comment.