From d6d0fcf1ee060067302a324ce6e9c99c97fb6411 Mon Sep 17 00:00:00 2001 From: Mauro Balades Date: Wed, 3 Jul 2024 20:01:28 +0200 Subject: [PATCH] refactor: Update download.tsx to use window.navigator instead of navigator.userAgent --- src/components/download.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/download.tsx b/src/components/download.tsx index b966987..9da7139 100644 --- a/src/components/download.tsx +++ b/src/components/download.tsx @@ -18,7 +18,7 @@ const releases: any = { }; function getDefaultPlatformBasedOnUserAgent() { - const userAgent = navigator.userAgent; + const userAgent = window.navigator.userAgent; if (userAgent.includes("Win")) { return "Windows"; }