electron/lib/renderer/api/crash-reporter.js

13 lines
389 B
JavaScript
Raw Normal View History

2020-03-20 20:28:31 +00:00
'use strict';
2020-03-20 20:28:31 +00:00
const CrashReporter = require('@electron/internal/common/crash-reporter');
const ipcRendererUtils = require('@electron/internal/renderer/ipc-renderer-internal-utils');
class CrashReporterRenderer extends CrashReporter {
2019-02-05 20:56:44 +00:00
init (options) {
2020-03-20 20:28:31 +00:00
return ipcRendererUtils.invokeSync('ELECTRON_CRASH_REPORTER_INIT', options);
}
}
2020-03-20 20:28:31 +00:00
module.exports = new CrashReporterRenderer();