mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-15 04:02:10 +08:00
13 lines
284 B
JavaScript
13 lines
284 B
JavaScript
'use strict';
|
|
|
|
const { crashReporter } = require('electron');
|
|
const config = require('../config');
|
|
|
|
/**
|
|
* 安装模块
|
|
*/
|
|
exports.setup = function () {
|
|
console.log('[electron-lib-crashReport] [setup]');
|
|
const options = config.get('crashReport');
|
|
crashReporter.start(options);
|
|
} |