ba57e1d991
* feat: promisify contentTracing.startRecording() * feat: promisify contentTracing.stopRecording() * test: convert specs for new promisified apis * chore: deprecate and ensure legacy tests work
9 lines
396 B
JavaScript
9 lines
396 B
JavaScript
'use strict'
|
|
const { deprecate } = require('electron')
|
|
const contentTracing = process.atomBinding('content_tracing')
|
|
|
|
contentTracing.getCategories = deprecate.promisify(contentTracing.getCategories)
|
|
contentTracing.startRecording = deprecate.promisify(contentTracing.startRecording)
|
|
contentTracing.stopRecording = deprecate.promisify(contentTracing.stopRecording)
|
|
|
|
module.exports = contentTracing
|