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 e387df2 commit c4af496Copy full SHA for c4af496
client/utils/device.ts
@@ -4,7 +4,5 @@
4
* - see https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform
5
*/
6
export function isMac(): boolean {
7
- return typeof navigator?.userAgent === 'string'
8
- ? navigator.userAgent.toLowerCase().includes('mac')
9
- : false;
+ return navigator?.userAgent?.toLowerCase().includes('mac') ?? false;
10
}
0 commit comments