We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bffb182 commit d52b484Copy full SHA for d52b484
src/client.ts
@@ -425,7 +425,7 @@ export class StreamClient<StreamFeedGenerics extends DefaultGenerics = DefaultGe
425
* @return {string} current user agent
426
*/
427
userAgent() {
428
- if (process === undefined || process.env.PACKAGE_VERSION === undefined) {
+ if (typeof process === 'undefined' || process.env.PACKAGE_VERSION === undefined) {
429
// eslint-disable-next-line
430
return `stream-javascript-client-${this.node ? 'node' : 'browser'}-${require('../package.json').version}`;
431
}
0 commit comments