Skip to content

Commit

Permalink
Add promise to constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed Jun 18, 2024
1 parent 66330e9 commit 39125ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1252,9 +1252,8 @@ export default class MetamaskController extends EventEmitter {
iframeUrl: new URL(process.env.IFRAME_EXECUTION_ENVIRONMENT_URL),
})
: new OffscreenExecutionService({
// eslint-disable-next-line no-undef
documentUrl: chrome.runtime.getURL('./offscreen.html'),
...snapExecutionServiceArgs,
offscreenPromise: this.offscreenPromise,
});

const snapControllerMessenger = this.controllerMessenger.getRestricted({
Expand Down

0 comments on commit 39125ed

Please sign in to comment.