mirror of https://github.com/electron/electron
11 lines
351 B
JavaScript
11 lines
351 B
JavaScript
const { crashReporter } = require('electron');
|
|
|
|
const params = new URLSearchParams(location.search);
|
|
if (params.get('set_extra') === '1') {
|
|
crashReporter.addExtraParameter('rendererSpecific', 'rs');
|
|
crashReporter.addExtraParameter('addedThenRemoved', 'to-be-removed');
|
|
crashReporter.removeExtraParameter('addedThenRemoved');
|
|
}
|
|
|
|
process.crash();
|