Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/core/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ else if (typeof document === 'undefined' && typeof self !== 'undefined') {
// In worker
env.worker = true;
}
else if (typeof navigator === 'undefined') {
else if (
typeof navigator === 'undefined' ||
navigator.userAgent.indexOf('Node.js') === 0
) {
// In node
env.node = true;
env.svgSupported = true;
Expand Down