@intlayer/config
Version:
Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.
12 lines (11 loc) • 371 B
JavaScript
//#region src/utils/setIntlayerIdentifier.ts
/**
* Sets the version of Intlayer in the window object.
* This is used for Intlayer detection in the browser.
*/
const setIntlayerIdentifier = () => {
if (typeof window !== "undefined") window.intlayer = { enabled: true };
};
//#endregion
export { setIntlayerIdentifier };
//# sourceMappingURL=setIntlayerIdentifier.mjs.map