Avoid duplicate inline embeds (#13048)
This commit is contained in:
parent
b99ccb1a5a
commit
6ce6d570db
|
@ -439,6 +439,10 @@ class CalApi {
|
|||
elementOrSelector: string | HTMLElement;
|
||||
config?: PrefillAndIframeAttrsConfig;
|
||||
}) {
|
||||
if (this.cal.inlineEl) {
|
||||
console.warn("Inline embed already exists. Ignoring this call");
|
||||
return;
|
||||
}
|
||||
// eslint-disable-next-line prefer-rest-params
|
||||
validate(arguments[0], {
|
||||
required: true,
|
||||
|
|
Loading…
Reference in New Issue
Block a user