From dd92974834362df8cab95d3630c6f8cfe8b7dd4b Mon Sep 17 00:00:00 2001 From: david0xd Date: Wed, 22 Feb 2023 11:36:39 +0100 Subject: [PATCH] Change lockdown execution order --- packages/snaps-execution-environments/nyc.config.js | 4 ++-- packages/snaps-execution-environments/src/iframe/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/snaps-execution-environments/nyc.config.js b/packages/snaps-execution-environments/nyc.config.js index c2086c9fe8..7ba9e8f2bc 100644 --- a/packages/snaps-execution-environments/nyc.config.js +++ b/packages/snaps-execution-environments/nyc.config.js @@ -4,7 +4,7 @@ module.exports = { 'check-coverage': true, branches: 89.28, - lines: 96.13, + lines: 96.14, functions: 96.66, - statements: 96.13, + statements: 96.14, }; diff --git a/packages/snaps-execution-environments/src/iframe/index.ts b/packages/snaps-execution-environments/src/iframe/index.ts index 3a0448aab8..fd836cfcbb 100644 --- a/packages/snaps-execution-environments/src/iframe/index.ts +++ b/packages/snaps-execution-environments/src/iframe/index.ts @@ -3,8 +3,8 @@ import { executeLockdownEvents } from '../common/lockdown/lockdown-events'; import { executeLockdownMore } from '../common/lockdown/lockdown-more'; import { IFrameSnapExecutor } from './IFrameSnapExecutor'; +executeLockdownEvents(); executeLockdown(); executeLockdownMore(); -executeLockdownEvents(); IFrameSnapExecutor.initialize();