diff --git a/packages/isomorphic-core/src/env-helpers.es6 b/packages/isomorphic-core/src/env-helpers.es6 new file mode 100644 index 000000000..c63359103 --- /dev/null +++ b/packages/isomorphic-core/src/env-helpers.es6 @@ -0,0 +1,8 @@ + +export function isClientEnv() { + return typeof window !== 'undefined' && typeof window.NylasEnv !== 'undefined' +} + +export function isCloudEnv() { + return !isClientEnv() +}