in src/embed.ts [816:837]
private async frontLoadSendConfig(config: IEmbedConfigurationBase): Promise<void> {
if (!config.accessToken) {
return;
}
const errors = this.validate(config);
if (errors) {
throw errors;
}
// contentWindow must be initialized
if (this.iframe.contentWindow == null) {
return;
}
try {
const response = await this.service.hpm.post<void>("/frontload/config", config, { uid: this.config.uniqueId }, this.iframe.contentWindow);
return response.body;
} catch (response) {
throw response.body;
}
}