electron/lib/browser/api/content-tracing.js
Shelley Vohr 641b47f384
feat: promisify contentTracing.getCategories() (#16583)
* feat: promisify contentTracing.getCategories()

* deprecate contentTracing/getCategories
2019-01-30 12:39:55 -08:00

7 lines
232 B
JavaScript

'use strict'
const { deprecate } = require('electron')
const contentTracing = process.atomBinding('content_tracing')
contentTracing.getCategories = deprecate.promisify(contentTracing.getCategories)
module.exports = contentTracing