blob: 8dd82a2c9163e726936ebd806f9ff637bd44beb9 [file] [log] [blame]
// Helper to identify domain and enable or disable features based on them
const currentDomain = window.location.hostname;
const supportedDomains = {
SKOTTIE_INTERNAL: 'skottie-internal.skia.org',
SKOTTIE_TENOR: 'skottie-tenor.skia.org',
SKOTTIE: 'skottie.skia.org',
LOCALHOST: 'localhost',
};
const isDomain = (domain: string): boolean => domain === currentDomain;
const isOneOfDomains = (domains: string[]): boolean =>
domains.includes(currentDomain);
export { isDomain, isOneOfDomains, supportedDomains };