diff --git a/packages/embeds/embed-core/src/embed-iframe.ts b/packages/embeds/embed-core/src/embed-iframe.ts index 5c8964bfc7..398fdd6867 100644 --- a/packages/embeds/embed-core/src/embed-iframe.ts +++ b/packages/embeds/embed-core/src/embed-iframe.ts @@ -14,7 +14,6 @@ declare global { embedStore: any; }; CalComPageStatus: string; - CalComPlan: string; isEmbed: () => boolean; resetEmbedStatus: () => void; getEmbedNamespace: () => string | null; @@ -252,14 +251,6 @@ export const methods = { log("Method: ui called", uiConfig); const stylesConfig = uiConfig.styles; - // In case where parent gives instructions before CalComPlan is set. - // This is easily possible as React takes time to initialize and render components where this variable is set. - if (!window?.CalComPlan) { - return requestAnimationFrame(() => { - style(uiConfig); - }); - } - // body can't be styled using React state hook as it is generated by _document.tsx which doesn't support hooks. if (stylesConfig?.body?.background) { document.body.style.background = stylesConfig.body.background as string;