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 b349b0e commit 83bed55Copy full SHA for 83bed55
1 file changed
src/client.ts
@@ -445,7 +445,7 @@ export class StreamClient<StreamFeedGenerics extends DefaultGenerics = DefaultGe
445
* @return {string} current user agent
446
*/
447
userAgent() {
448
- if (process === undefined || process.env.PACKAGE_VERSION === undefined) {
+ if (typeof process === 'undefined' || process.env.PACKAGE_VERSION === undefined) {
449
// eslint-disable-next-line
450
return `stream-javascript-client-${this.node ? 'node' : 'browser'}-${require('../package.json').version}`;
451
}
0 commit comments