From: Cheng Zhao Date: Thu, 21 May 2015 03:16:39 +0000 (+0800) Subject: docs: Open devtools in the quick start example X-Git-Tag: v0.26.1~6 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=71ee864d1d184f10aa03dbc70d51dadf46e92a09;p=electron.git docs: Open devtools in the quick start example --- diff --git a/docs/tutorial/quick-start.md b/docs/tutorial/quick-start.md index d9f6504e..fbdad5b4 100644 --- a/docs/tutorial/quick-start.md +++ b/docs/tutorial/quick-start.md @@ -95,6 +95,9 @@ app.on('ready', function() { // and load the index.html of the app. mainWindow.loadUrl('file://' + __dirname + '/index.html'); + // Open the devtools. + mainWindow.openDevTools(); + // Emitted when the window is closed. mainWindow.on('closed', function() { // Dereference the window object, usually you would store windows