Take options object in process.crashReporter.start

This commit is contained in:
Kevin Sawicki 2016-12-12 14:35:59 -08:00
parent 1f07cf2545
commit 91f8d6092b
5 changed files with 35 additions and 28 deletions

View file

@ -5,8 +5,14 @@ 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, {
process.crashReporter.start({
productName: productName,
companyName: companyName,
submitURL: 'http://localhost:1127/post',
crashesDirectory: tmpPath,
extra: {
randomData1: 'The Holidays are here!',
randomData2: 'Happy New Year!'
}
});
process.crash();