/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

const appConfig = require('../js/constants/appConfig')
const crashReporter = require('electron').crashReporter

exports.init = () => {
  const options = {
    productName: 'Brave Developers',
    companyName: 'Brave.com',
    submitURL: appConfig.crashes.crashSubmitUrl,
    autoSubmit: true,
    extra: {
      node_env: process.env.NODE_ENV
    }
  }
  crashReporter.start(options)
}

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

const appConfig = require('../js/constants/appConfig')
const crashReporter = require('electron').crashReporter
const buildConfig = require('../js/constants/buildConfig')

exports.init = () => {
  const options = {
    productName: 'Brave Developers',
    companyName: 'Brave.com',
    submitURL: appConfig.crashes.crashSubmitUrl,
    autoSubmit: true,
    extra: {
      node_env: process.env.NODE_ENV,
      rev: buildConfig.BROWSER_LAPTOP_REV || 'unknown'
    }
  }
  crashReporter.start(options)
}

Send rev hash to crash reports
Send rev hash to crash reports

Add rev. hash to the extra parameter send with crash reports.

Auditors: 552486fed9a9ff3f07aa28f460daa63ab433892d@alexwykoff
