feat: promisify contentTracing.getCategories() (#16583)
* feat: promisify contentTracing.getCategories() * deprecate contentTracing/getCategories
This commit is contained in:
parent
9ed89ace97
commit
641b47f384
4 changed files with 32 additions and 11 deletions
|
@ -1,3 +1,7 @@
|
|||
'use strict'
|
||||
const { deprecate } = require('electron')
|
||||
const contentTracing = process.atomBinding('content_tracing')
|
||||
|
||||
module.exports = process.atomBinding('content_tracing')
|
||||
contentTracing.getCategories = deprecate.promisify(contentTracing.getCategories)
|
||||
|
||||
module.exports = contentTracing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue