bootstrap - log an error when window config cannot be loaded in 10s (#127421)
This commit is contained in:
parent
090d8bc3b9
commit
158b9b3c36
2
src/bootstrap-window.js
vendored
2
src/bootstrap-window.js
vendored
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue