braid-design-system@32.12.5
·
641 commits
to master
since this release
Patch Changes
-
The Braid Provider contains some code to check that it's running in a browser context (otherwise a BraidTestProvider should be used). (#1382)
Part of this check was looking to see if there was a
navigatorobject, which was not available in Node.
If there were, it would check theuserAgentto determine if it was inside jsdom.Node 21 has a
navigatorobject, but it doesn't have auserAgentproperty, so this check was failing (cannot read property 'indexOf' of undefined).The "are we in JSDom" check in the BraidProvider has now been reworked slightly to account for the potentially existing but empty
navigatorobject.