docs: Open devtools in the quick start example

This commit is contained in:
Cheng Zhao 2015-05-21 11:16:39 +08:00
parent 427b9567ca
commit 71ee864d1d

View file

@ -95,6 +95,9 @@ app.on('ready', function() {
// and load the index.html of the app. // and load the index.html of the app.
mainWindow.loadUrl('file://' + __dirname + '/index.html'); mainWindow.loadUrl('file://' + __dirname + '/index.html');
// Open the devtools.
mainWindow.openDevTools();
// Emitted when the window is closed. // Emitted when the window is closed.
mainWindow.on('closed', function() { mainWindow.on('closed', function() {
// Dereference the window object, usually you would store windows // Dereference the window object, usually you would store windows