/
githubmirror
/
atom
Обзор
Документация
Войти
/
githubmirror
/
atom
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/crash-reporter-start.js
17 строк
527 B
Mazen El-Kashef
Fix lint errors
12 июн 2020, 06:23
12 июн 2020, 06:23
9c16e5c
Код
Авторство
О чём код?
module.exports = function(params) { const { crashReporter } = require('electron'); const os = require('os'); const platformRelease = os.release(); const arch = os.arch(); const { uploadToServer, releaseChannel } = params; const parsedUploadToServer = uploadToServer !== null ? uploadToServer : false; crashReporter.start({ productName: 'Atom', companyName: 'GitHub', submitURL: 'https://atom.io/crash_reports', parsedUploadToServer, extra: { platformRelease, arch, releaseChannel } }); };