diff options
author | Benjamin Pasero <benjamin.pasero@microsoft.com> | 2021-06-29 20:41:19 +0300 |
---|---|---|
committer | Benjamin Pasero <benjamin.pasero@microsoft.com> | 2021-06-29 20:41:19 +0300 |
commit | 158b9b3c36c8625695b6f0473a992dedeed494ca (patch) | |
tree | c6ae798a78955a88d0f71381d0d52d77d7ded92f /src/bootstrap-window.js | |
parent | 090d8bc3b90d514c3c2ff2514d3bcdbb83f88fa9 (diff) |
bootstrap - log an error when window config cannot be loaded in 10s (#127421)
Diffstat (limited to 'src/bootstrap-window.js')
-rw-r--r-- | src/bootstrap-window.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap-window.js b/src/bootstrap-window.js index 23d6e05a210..0dbdbc5265d 100644 --- a/src/bootstrap-window.js +++ b/src/bootstrap-window.js @@ -52,10 +52,12 @@ }); // Await window configuration from preload + const timeout = setTimeout(() => { console.error(`[resolve window config] Could not resolve window configuration within 10 seconds, but will continue to wait...`); }, 10000); performance.mark('code/willWaitForWindowConfig'); /** @type {ISandboxConfiguration} */ const configuration = await preloadGlobals.context.resolveConfiguration(); performance.mark('code/didWaitForWindowConfig'); + clearTimeout(timeout); // Signal DOM modifications are now OK if (typeof options?.canModifyDOM === 'function') { |