mirror of
https://github.com/electron/electron.git
synced 2026-01-27 00:09:09 -05:00
13 lines
400 B
JavaScript
13 lines
400 B
JavaScript
const os = require('os')
|
|
const path = require('path')
|
|
|
|
let productName = 'Child Product';
|
|
let companyName = 'Child Company';
|
|
let tmpPath = path.join(os.tmpdir(), productName + ' Crashes');
|
|
|
|
process.crashReporter.start(productName, companyName, 'http://localhost:8080/uploadDump/childDump', tmpPath, {
|
|
randomData1: 'The Holidays are here!',
|
|
randomData2: 'Happy New Year!'
|
|
});
|
|
process.crash();
|