2022-03-31 08:45:47 +00:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* This module is supposed to instantiate the SDK with appropriate namespace
|
|
|
|
*/
|
2023-06-16 10:31:57 +00:00
|
|
|
import embedInit from "@calcom/embed-core/embed-iframe-init";
|
|
|
|
|
2022-03-31 08:45:47 +00:00
|
|
|
import { SdkActionManager } from "./sdk-action-manager";
|
|
|
|
|
|
|
|
export let sdkActionManager: SdkActionManager | null = null;
|
|
|
|
if (typeof window !== "undefined") {
|
2023-06-16 10:31:57 +00:00
|
|
|
embedInit();
|
|
|
|
sdkActionManager = new SdkActionManager(window.getEmbedNamespace());
|
2022-03-31 08:45:47 +00:00
|
|
|
}
|