electron/spec/fixtures/module/crash.js

20 lines
559 B
JavaScript
Raw Normal View History

2017-01-24 21:49:45 +00:00
process.crashReporter.start({
productName: 'Zombies',
companyName: 'Umbrella Corporation',
crashesDirectory: process.argv[4],
submitURL: `http://127.0.0.1:${process.argv[2]}`,
extra: {
extra1: 'extra1',
extra2: 'extra2',
_version: process.argv[3]
}
2020-03-20 20:28:31 +00:00
});
2017-01-24 21:49:45 +00:00
if (process.platform !== 'linux') {
2020-03-20 20:28:31 +00:00
process.crashReporter.addExtraParameter('newExtra', 'newExtra');
process.crashReporter.addExtraParameter('removeExtra', 'removeExtra');
process.crashReporter.removeExtraParameter('removeExtra');
}
2020-03-20 20:28:31 +00:00
process.nextTick(() => process.crash());