refactor sentryHooks object (#16435)
parent
25bb6ef861
commit
6cca9892b2
@ -1,10 +1,10 @@ |
|||||||
import setupSentry from './lib/setupSentry'; |
import setupSentry from './lib/setupSentry'; |
||||||
|
|
||||||
// The root compartment will populate this with hooks
|
// The root compartment will populate this with hooks
|
||||||
global.sentryHooks = {}; |
global.stateHooks = {}; |
||||||
|
|
||||||
// setup sentry error reporting
|
// setup sentry error reporting
|
||||||
global.sentry = setupSentry({ |
global.sentry = setupSentry({ |
||||||
release: process.env.METAMASK_VERSION, |
release: process.env.METAMASK_VERSION, |
||||||
getState: () => global.sentryHooks?.getSentryState?.() || {}, |
getState: () => global.stateHooks?.getSentryState?.() || {}, |
||||||
}); |
}); |
||||||
|
Loading…
Reference in new issue