in src/embed.ts [575:588]
private getEmbedUrl(isBootstrap: boolean): string {
let embedUrl = this.config.embedUrl || this.element.getAttribute(Embed.embedUrlAttribute);
if (isBootstrap && !embedUrl) {
// Prepare flow, embed url was not provided, use hostname to build embed url.
embedUrl = this.getDefaultEmbedUrl(this.config.hostname);
}
if (typeof embedUrl !== 'string' || embedUrl.length === 0) {
throw new Error(`Embed Url is required, but it was not found. You must provide an embed url either as part of embed configuration or as attribute '${Embed.embedUrlAttribute}'.`);
}
return embedUrl;
}