cal.pub0.org/packages/embeds/embed-core/src/sdk-event.ts

14 lines
401 B
TypeScript
Raw Normal View History

2022-03-31 08:45:47 +00:00
/**
* @file
* This module is supposed to instantiate the SDK with appropriate namespace
*/
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") {
embedInit();
sdkActionManager = new SdkActionManager(window.getEmbedNamespace());
2022-03-31 08:45:47 +00:00
}