Skip to content

Commit

Permalink
feat(external-api) add deployment information to ready event
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Jul 31, 2024
1 parent c04000e commit 2176b16
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/API/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}

/**
Expand Down

0 comments on commit 2176b16

Please sign in to comment.