Move updateBackgroundConnection call in ui/index.js to before the action calls (#15826)

feature/default_network_editable
Dan J Miller 2 years ago committed by seaona
parent 222c5debf3
commit 96a68019bf
  1. 4
      ui/index.js

@ -114,6 +114,8 @@ async function startApp(metamaskState, backgroundConnection, opts) {
},
};
updateBackgroundConnection(backgroundConnection);
if (getEnvironmentType() === ENVIRONMENT_TYPE_POPUP) {
const { origin } = draftInitialState.activeTab;
const permittedAccountsForCurrentTab =
@ -161,8 +163,6 @@ async function startApp(metamaskState, backgroundConnection, opts) {
);
}
updateBackgroundConnection(backgroundConnection);
// global metamask api - used by tooling
global.metamask = {
updateCurrentLocale: (code) => {

Loading…
Cancel
Save