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 <jameshfisher@gmail.com>
This commit is contained in:
trop[bot]
2020-12-02 14:29:00 -05:00
committed by GitHub
parent 75cdd02697
commit d12674f9f1

View File

@@ -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))