We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52e45b6 commit c0d7a35Copy full SHA for c0d7a35
src/core/env.ts
@@ -37,11 +37,7 @@ else if (typeof document === 'undefined' && typeof self !== 'undefined') {
37
// In worker
38
env.worker = true;
39
}
40
-else if (
41
- (typeof process !== 'undefined' && typeof process.version === 'string')
42
- || (typeof navigator === 'undefined' || typeof navigator.userAgent === 'undefined')
43
- || (env.hasGlobalWindow && 'Deno' in window)
44
-) {
+else if (!env.hasGlobalWindow || 'Deno' in window) {
45
// In node
46
env.node = true;
47
env.svgSupported = true;
0 commit comments