diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index e6d51c7f598f..867f633cc38a 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -509,11 +509,6 @@ export default class MetamaskController extends EventEmitter { }), }); - // turn on perDappSelectedNetwork feature flag - this.selectedNetworkController.update((state) => { - state.perDomainNetwork = true; - }); - this.tokenListController = new TokenListController({ chainId: this.networkController.state.providerConfig.chainId, preventPollingOnNetworkRestart: initState.TokenListController @@ -2531,9 +2526,7 @@ export default class MetamaskController extends EventEmitter { preferencesController, ), ///: END:ONLY_INCLUDE_IN - setUseRequestQueue: preferencesController.setUseRequestQueue.bind( - preferencesController, - ), + setUseRequestQueue: this.setUseRequestQueue.bind(this), setIpfsGateway: preferencesController.setIpfsGateway.bind( preferencesController, ), @@ -4007,6 +4000,17 @@ export default class MetamaskController extends EventEmitter { this.sendUpdate(); } + //============================================================================= + // REQUEST QUEUE + //============================================================================= + + setUseRequestQueue(value) { + this.preferencesController.setUseRequestQueue(value); + this.selectedNetworkController.update((state) => { + state.perDomainNetwork = value; + }); + } + //============================================================================= // SETUP //=============================================================================