2018-10-06 11:48:00 +00:00
|
|
|
'use strict'
|
|
|
|
|
|
|
|
const CrashReporter = require('@electron/internal/common/crash-reporter')
|
2019-02-04 22:49:53 +00:00
|
|
|
const { ipcMainInternal } = require('@electron/internal/browser/ipc-main-internal')
|
2018-10-06 11:48:00 +00:00
|
|
|
|
|
|
|
class CrashReporterMain extends CrashReporter {
|
|
|
|
sendSync (channel, ...args) {
|
|
|
|
const event = {}
|
2019-02-04 22:49:53 +00:00
|
|
|
ipcMainInternal.emit(channel, event, ...args)
|
2018-10-06 11:48:00 +00:00
|
|
|
return event.returnValue
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = new CrashReporterMain()
|