2020-04-22 22:53:12 +00:00
|
|
|
const { crashReporter } = require('electron');
|
2020-05-07 20:31:26 +00:00
|
|
|
|
2020-04-22 22:53:12 +00:00
|
|
|
const params = new URLSearchParams(location.search);
|
|
|
|
if (params.get('set_extra') === '1') {
|
2020-05-07 20:31:26 +00:00
|
|
|
crashReporter.addExtraParameter('rendererSpecific', 'rs');
|
|
|
|
crashReporter.addExtraParameter('addedThenRemoved', 'to-be-removed');
|
|
|
|
crashReporter.removeExtraParameter('addedThenRemoved');
|
2020-04-22 22:53:12 +00:00
|
|
|
}
|
2020-05-07 20:31:26 +00:00
|
|
|
|
2020-04-22 22:53:12 +00:00
|
|
|
process.crash();
|