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.
2 parents 97f6e72 + 894f408 commit 401e314Copy full SHA for 401e314
src/core/env.ts
@@ -37,7 +37,10 @@ else if (typeof document === 'undefined' && typeof self !== 'undefined') {
37
// In worker
38
env.worker = true;
39
}
40
-else if (typeof navigator === 'undefined') {
+else if (
41
+ typeof navigator === 'undefined' ||
42
+ navigator.userAgent.indexOf('Node.js') === 0
43
+) {
44
// In node
45
env.node = true;
46
env.svgSupported = true;
0 commit comments