* chore: Remove env variables in webpack bundle * remove unused globals * refactor: consolidate window.env calls to single file * fix: Slack client side integration auth * fix: developers url
9 lines
217 B
JavaScript
9 lines
217 B
JavaScript
// @flow
|
|
import { stripSubdomain } from "../../shared/utils/domains";
|
|
|
|
export function getCookieDomain(domain: string) {
|
|
return process.env.SUBDOMAINS_ENABLED === "true"
|
|
? stripSubdomain(domain)
|
|
: domain;
|
|
}
|