Skip to content

Commit 158b9b3

Browse files
committed
bootstrap - log an error when window config cannot be loaded in 10s (microsoft#127421)
1 parent 090d8bc commit 158b9b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bootstrap-window.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@
5252
});
5353

5454
// Await window configuration from preload
55+
const timeout = setTimeout(() => { console.error(`[resolve window config] Could not resolve window configuration within 10 seconds, but will continue to wait...`); }, 10000);
5556
performance.mark('code/willWaitForWindowConfig');
5657
/** @type {ISandboxConfiguration} */
5758
const configuration = await preloadGlobals.context.resolveConfiguration();
5859
performance.mark('code/didWaitForWindowConfig');
60+
clearTimeout(timeout);
5961

6062
// Signal DOM modifications are now OK
6163
if (typeof options?.canModifyDOM === 'function') {

0 commit comments

Comments
 (0)