Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: CozyClient can be used in a node env
Previous fix tried to handle undefined `window` in node env But in a node env window is not `undefined` as it is not even an existing variable So instead of checking its value, a better way it to check its type as `typeof` will return `'undefined'` when called with a variable that does not exist Related commit: 509a0ca
- Loading branch information