crashReport.js 284 B

12345678910111213
  1. 'use strict';
  2. const { crashReporter } = require('electron');
  3. const config = require('../config');
  4. /**
  5. * 安装模块
  6. */
  7. exports.setup = function () {
  8. console.log('[electron-lib-crashReport] [setup]');
  9. const options = config.get('crashReport');
  10. crashReporter.start(options);
  11. }