intelica-library-ui 0.1.121 → 0.1.122

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -234,8 +234,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
234
234
  }]
235
235
  }] });
236
236
 
237
- // import { CookieAttributes } from "typescript-cookie/dist/types";
238
- const domain = window.location.hostname.split(".").slice(-2).join(".");
237
+ const configService = inject(ConfigService);
238
+ const domain = window.location.hostname
239
+ .split(".")
240
+ .slice(configService.environment?.environment == "main" ? -2 : -3)
241
+ .join(".");
239
242
  const secure = !domain.includes("localhost");
240
243
  const CookieAttributesGeneral = { domain: domain, path: "/", secure: secure };
241
244