Browse Source

docs: fix contentTracing code sample (#26777)

According to the API docs, the property is called included_categories, not include_categories.

Co-authored-by: Jim Fisher <[email protected]>
trop[bot] 4 years ago
parent
commit
d12674f9f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/api/content-tracing.md

+ 1 - 1
docs/api/content-tracing.md

@@ -16,7 +16,7 @@ const { app, contentTracing } = require('electron')
 app.whenReady().then(() => {
   (async () => {
     await contentTracing.startRecording({
-      include_categories: ['*']
+      included_categories: ['*']
     })
     console.log('Tracing started')
     await new Promise(resolve => setTimeout(resolve, 5000))