blob: fbd0f9e621238a6d9f35583d90049dd5420ef5d8 [file] [log] [blame]
// Helper to identify domain and enable or disable features based on them
const currentDomaint = 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) => domain === currentDomaint;
const isOneOfDomains = (domains) => domains.includes(currentDomaint);
export {
isDomain,
isOneOfDomains,
supportedDomains,
};