From 0eb25b7b93ca6c2d72d9978e43abcb93fa2a7a38 Mon Sep 17 00:00:00 2001 From: CodingRule Date: Tue, 19 Nov 2024 05:11:14 -0800 Subject: [PATCH] Update detectOS.ts Signed-off-by: CodingRule --- apps/site/util/detectOS.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/site/util/detectOS.ts b/apps/site/util/detectOS.ts index 1e1462a73882c..9c61f65b865ee 100644 --- a/apps/site/util/detectOS.ts +++ b/apps/site/util/detectOS.ts @@ -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);