feat(external-api) add deployment information to ready event

This commit is contained in:
Saúl Ibarra Corretgé
2024-07-31 15:25:21 +02:00
committed by Saúl Ibarra Corretgé
parent c04000ea20
commit 6727004930

View File

@@ -1126,7 +1126,12 @@ class API {
this.notifyBrowserSupport(isSupportedBrowser());
// Let the embedder know we are ready.
this._sendEvent({ name: 'ready' });
this._sendEvent({
name: 'ready',
// XXX: Here we are using window.config since this is fired really early.
info: window.config.deploymentInfo
});
}
/**