Electronで、クラッシュレポート(crashReporter)です。 クラッシュしたデータをリモートのURLにサブミットできます。これは便利ですね。
renderer.js
参考サイト
electron/crashReporter(Electron)
crash-report(electron-sample-apps)
renderer.js
const {crashReporter} = require('electron');
crashReporter.start({
productName: 'appName',
companyName: 'companyName',
submitURL: 'http://www.example.com/error',
autoSubmit: true
});
document.querySelector('#crash').addEventListener('click', function () {
// 強制的にクラッシュ
process.crash();
});
参考サイト
electron/crashReporter(Electron)
crash-report(electron-sample-apps)