refactor: Update download.tsx to use window.navigator instead of navigator.userAgent

This commit is contained in:
Mauro Balades 2024-07-03 20:01:28 +02:00
parent 80fa3d1842
commit d6d0fcf1ee

View file

@ -18,7 +18,7 @@ const releases: any = {
};
function getDefaultPlatformBasedOnUserAgent() {
const userAgent = navigator.userAgent;
const userAgent = window.navigator.userAgent;
if (userAgent.includes("Win")) {
return "Windows";
}