Skip to content

Commit

Permalink
fix(core): fix regression in 4ae7fbc
Browse files Browse the repository at this point in the history
Fix #229
  • Loading branch information
larsgw committed Jun 12, 2024
1 parent 9259e28 commit c2dcb6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/util/fetchFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const { fetch: asyncFetch, Headers: asyncHeaders } = typeof fetch === 'function'

let userAgent = `Citation.js/${pkg.version}`

if (process && process.release && process.release.name === 'node' && process.version) {
if (typeof process !== 'undefined' && process && process.release && process.release.name === 'node' && process.version) {
userAgent += ` Node.js/${process.version}`
}

Expand Down

0 comments on commit c2dcb6a

Please sign in to comment.