Take options object in process.crashReporter.start
This commit is contained in:
parent
1f07cf2545
commit
91f8d6092b
5 changed files with 35 additions and 28 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue