electron/lib/renderer/api/crash-reporter.ts

16 lines
342 B
TypeScript

const binding = process._linkedBinding('electron_renderer_crash_reporter');
export default {
addExtraParameter (key: string, value: string) {
binding.addExtraParameter(key, value);
},
removeExtraParameter (key: string) {
binding.removeExtraParameter(key);
},
getParameters () {
return binding.getParameters();
}
};