* 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
8 lines
207 B
JavaScript
8 lines
207 B
JavaScript
// @flow
|
|
import { stripSubdomain } from "shared/utils/domains";
|
|
import env from "env";
|
|
|
|
export function getCookieDomain(domain: string) {
|
|
return env.SUBDOMAINS_ENABLED ? stripSubdomain(domain) : domain;
|
|
}
|