Avoid duplicate inline embeds (#13048)
This commit is contained in:
1 parent
b99ccb1a5a
commit
6ce6d570db
1 file changed
+4
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user