|
|
@ -8,7 +8,7 @@ module.exports = setupRaven |
|
|
|
|
|
|
|
|
|
|
|
// Setup raven / sentry remote error reporting
|
|
|
|
// Setup raven / sentry remote error reporting
|
|
|
|
function setupRaven (opts) { |
|
|
|
function setupRaven (opts) { |
|
|
|
const { releaseVersion } = opts |
|
|
|
const { release } = opts |
|
|
|
let ravenTarget |
|
|
|
let ravenTarget |
|
|
|
// detect brave
|
|
|
|
// detect brave
|
|
|
|
const isBrave = Boolean(window.chrome.ipcRenderer) |
|
|
|
const isBrave = Boolean(window.chrome.ipcRenderer) |
|
|
@ -22,7 +22,7 @@ function setupRaven (opts) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const client = Raven.config(ravenTarget, { |
|
|
|
const client = Raven.config(ravenTarget, { |
|
|
|
releaseVersion, |
|
|
|
release, |
|
|
|
transport: function (opts) { |
|
|
|
transport: function (opts) { |
|
|
|
opts.data.extra.isBrave = isBrave |
|
|
|
opts.data.extra.isBrave = isBrave |
|
|
|
const report = opts.data |
|
|
|
const report = opts.data |
|
|
|