mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix state creation in setupSentryGetStateGlobal (#15635)
This commit is contained in:
parent
d25f9cf4da
commit
fc232da4c4
@ -360,7 +360,7 @@ function setupController(initState, initLangCode, remoteSourcePort) {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
setupSentryGetStateGlobal(controller.store);
|
setupSentryGetStateGlobal(controller);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assigns the given state to the versioned object (with metadata), and returns that.
|
* Assigns the given state to the versioned object (with metadata), and returns that.
|
||||||
@ -788,11 +788,11 @@ browser.runtime.onInstalled.addListener(({ reason }) => {
|
|||||||
function setupSentryGetStateGlobal(store) {
|
function setupSentryGetStateGlobal(store) {
|
||||||
global.getSentryState = function () {
|
global.getSentryState = function () {
|
||||||
const fullState = store.getState();
|
const fullState = store.getState();
|
||||||
const debugState = maskObject(fullState, SENTRY_STATE);
|
const debugState = maskObject({ metamask: fullState }, SENTRY_STATE);
|
||||||
return {
|
return {
|
||||||
browser: window.navigator.userAgent,
|
browser: window.navigator.userAgent,
|
||||||
store: debugState,
|
store: debugState,
|
||||||
version: global.platform.getVersion(),
|
version: platform.getVersion(),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user