Closed shrpne closed 6 years ago
In the meanwhile, you can use this fork which has @andrejpavlovic and @shrpne's changes https://www.npmjs.com/package/@playlyfe/custom-event-polyfill
This fix is not sufficient to guard an actual node.js server environment, you need to use typeof window === ‘undefined’
instead of !window
Thanks! I've updated this check
Has been merged in my fork. New version released.
I have an issue with this polyfill using it with SSR. I have added a simple check, so now it does nothing when running in the Node.js environment.