mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-21 17:37:01 +01:00
9cfa9ba6b0
In the case where an error is thrown in the UI before initialization has finished, we aren't capturing the application state correctly for Sentry errors. We had a test case for this, but the test case was broken due to a mistake in how the `network-store` was setup (it was not matching the behavior of the real `local-tstore` module). The pre-initialization state capture logic was updated to rely solely upon the `localStore` instance used by Sentry to determine whether the user had opted-in to metrics or not. This simplifies the logic a great deal, removing the need for the `getMostRecentPersistedState` state hook. It also ensures that state is captured corretly pre- initialization in both the background and UI. |
||
---|---|---|
.. | ||
_locales | ||
build-types | ||
fonts | ||
images | ||
manifest | ||
scripts | ||
vendor/trezor | ||
background.html | ||
home.html | ||
loading.html | ||
notification.html | ||
popup.html | ||
trezor-usb-permissions.html |