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 fb750ce commit b24ac46Copy full SHA for b24ac46
packages/@react-aria/utils/src/platform.ts
@@ -22,7 +22,7 @@ function testUserAgent(re: RegExp) {
22
23
function testPlatform(re: RegExp) {
24
return typeof window !== 'undefined' && window.navigator != null
25
- ? re.test((window.navigator['userAgentData'] || window.navigator).platform)
+ ? re.test(window.navigator['userAgentData']?.platform || window.navigator.platform)
26
: false;
27
}
28
0 commit comments