GetStream / stream-js

JS / Browser Client - Build Activity Feeds & Streams with GetStream.io
https://getstream.io
BSD 3-Clause "New" or "Revised" License
329 stars 110 forks source link

Fix condition failing in browser #606

Closed idleberg closed 3 weeks ago

idleberg commented 5 months ago

This bug was introduced in #572, meant to be a fix on its own. However, it doesn't take into account that process === undefined will fail in the browser.

image

Some bundlers will probably mitigate this, but when using Vite (or no bundler at all), the code will fail.