]> khamidou — GitHub mirrors - electron.git/commitdiff
docs: Open devtools in the quick start example
authorCheng Zhao <zcbenz@gmail.com>
Thu, 21 May 2015 03:16:39 +0000 (11:16 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 21 May 2015 03:16:39 +0000 (11:16 +0800)
docs/tutorial/quick-start.md

index d9f6504eb1fa9dcfda5d77987f71ddd1ae170063..fbdad5b4ec4cf38c0bee754278277e71bb78e4e6 100644 (file)
@@ -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