diff options
author | Benjamin Pasero <benjpas@microsoft.com> | 2021-05-06 09:56:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-06 09:56:52 +0300 |
commit | 9f8431f7fccf7a048531043eb6b6d24819482781 (patch) | |
tree | b5df27fcb5b4e6f31d45333a261a0a5e806b9531 /src/bootstrap-window.js | |
parent | fecca7b8d8f937b2efa5f24b078ba5e60187ec2d (diff) |
Allow rapid render in sandbox (#122828) (#122830)
* allow rapid render in sandbox (#122828)
* remote throttled delayer
* some final :lipstick:
Diffstat (limited to 'src/bootstrap-window.js')
-rw-r--r-- | src/bootstrap-window.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bootstrap-window.js b/src/bootstrap-window.js index c1f8f1841a4..270dda4cd68 100644 --- a/src/bootstrap-window.js +++ b/src/bootstrap-window.js @@ -57,6 +57,11 @@ const configuration = await preloadGlobals.context.resolveConfiguration(); performance.mark('code/didWaitForWindowConfig'); + // Signal DOM modifications are now OK + if (typeof options?.canModifyDOM === 'function') { + options.canModifyDOM(configuration); + } + // Developer settings const { forceDisableShowDevtoolsOnError, @@ -79,11 +84,6 @@ // Enable ASAR support globalThis.MonacoBootstrap.enableASARSupport(configuration.appRoot); - // Signal DOM modifications are now OK - if (typeof options?.canModifyDOM === 'function') { - options.canModifyDOM(configuration); - } - // Get the nls configuration into the process.env as early as possible const nlsConfig = globalThis.MonacoBootstrap.setupNLS(); |