11 lines
344 B
TypeScript
11 lines
344 B
TypeScript
/**
|
|
* @file
|
|
* This module is supposed to instantiate the SDK with appropriate namespace
|
|
*/
|
|
import { SdkActionManager } from "./sdk-action-manager";
|
|
|
|
export let sdkActionManager: SdkActionManager | null = null;
|
|
if (typeof window !== "undefined") {
|
|
sdkActionManager = new SdkActionManager(new URL(document.URL).searchParams.get("embed"));
|
|
}
|