Skip to content

Commit

Permalink
Update detectOS.ts
Browse files Browse the repository at this point in the history
Signed-off-by: CodingRule <ioumih32@gmail.com>
  • Loading branch information
CodingRule authored Nov 19, 2024
1 parent 93eaf71 commit 0eb25b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/site/util/detectOS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export const detectOsInUserAgent = (userAgent: string | undefined): UserOS => {
return osMap[osMatch?.[1] ?? ''] || 'OTHER';
};

// Since navigator.appVersion is deprecated, we use the userAgent
// Since `navigator.appVersion` is deprecated, we use the `userAgent``
// https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appVersion
export const detectOS = (): UserOS => detectOsInUserAgent(navigator?.userAgent);

0 comments on commit 0eb25b7

Please sign in to comment.