diff --git a/src/utils/getEnvironment.js b/src/utils/getEnvironment.js index da7d3eaa0..0971d99ca 100644 --- a/src/utils/getEnvironment.js +++ b/src/utils/getEnvironment.js @@ -7,7 +7,7 @@ module.exports = (key) => { env.type = 'webworker'; } else if (isElectron()) { env.type = 'electron'; - } else if (typeof window === 'object') { + } else if (typeof document === 'object') { env.type = 'browser'; } else if (typeof process === 'object' && typeof require === 'function') { env.type = 'node';