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 292c2fc commit 84e6af5
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 @@ -1259,9 +1259,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 84e6af5

Please sign in to comment.