1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-28 23:06:37 +01:00
metamask-extension/app/scripts/sentry-install.js
2022-11-09 19:28:32 +00:00

11 lines
295 B
JavaScript

import setupSentry from './lib/setupSentry';
// The root compartment will populate this with hooks
global.stateHooks = {};
// setup sentry error reporting
global.sentry = setupSentry({
release: process.env.METAMASK_VERSION,
getState: () => global.stateHooks?.getSentryState?.() || {},
});